Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Trigger on GMCP data

Trigger on GMCP data

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Trandor   (1 post)  Bio
Date Sun 12 Jun 2016 04:58 AM (UTC)

Amended on Sun 12 Jun 2016 05:27 AM (UTC) by Trandor

Message
Is it possible to fire triggers on GMCP data?

This simple test example doesn't work.
(trying to trigger on the "room.info" text as received on "Debug Packets")


<triggers>
  <trigger
   enabled="y"
   match="^(.*?)room\.info(.*?)$"
   regexp="y"
   send_to="12"
   sequence="1"
  >
  <send>Note("Evrika!")</send>
  </trigger>
</triggers>
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #1 on Sun 12 Jun 2016 10:12 AM (UTC)
Message
I'd suggest http://gammon.com.au/forum/bbshowpost.php?id=11042 as a basic primer for GMCP handling.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #2 on Sun 12 Jun 2016 10:45 AM (UTC)
Message
The short answer is that triggers match on data you actually see. GMCP is "out of band" information that triggers do not process.

However there are plugin callbacks that are specifically designed to catch GMCP data, for example as used by the mapper.

Check out the link provided by Meerclar and also look at the documented plugin callbacks in the help file.

In particular: http://www.gammon.com.au/scripts/doc.php?general=plugin_callbacks

See: OnPluginTelnetSubnegotiation

Also check out my post about handling GMCP:

http://www.gammon.com.au/gmcp

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


14,271 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.