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
➜ gagging multiple line triggers
gagging multiple line triggers
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Jimbob
(4 posts) Bio
|
Date
| Mon 23 Feb 2009 01:21 PM (UTC) |
Message
| If I have a multiline trigger like the following
Is it possible to gat both line1 and line2? | Top |
|
Posted by
| Worstje
Netherlands (899 posts) Bio
|
Date
| Reply #1 on Mon 23 Feb 2009 02:42 PM (UTC) Amended on Mon 23 Feb 2009 07:03 PM (UTC) by Worstje
|
Message
| Yes it is possible. Although I am not sure what you mean 'get both line1 and line2.'
If you mean you want them captured as %1 and %2, make it a regular expression like... ^(Line1)\n(Line2)\z
If the problem is getting the trigger to work, you may just need to turn multi-line on, and set lines to match to 2.
Edit: oi, I need to read better. I totally didn't read (or realize the contents of) the subject line. :( | Top |
|
Posted by
| WillFa
USA (525 posts) Bio
|
Date
| Reply #2 on Mon 23 Feb 2009 06:02 PM (UTC) |
Message
| Gagging them isn't as straight forward as just the check box "Omit from Output".
You could script out a call to "DeleteLines" and remove the last 2 lines on match with the one mutliline trigger.
Alternatively, 2 triggers would probably be easier.
^line1$
omit_from_output = 'y'
<send> EnableTrigger "GagLine2" </send>
and
^line2$
name="GagLine2"
omit_from_output="y"
<send>EnableTrigger ("GagLine2", false) </send>
| 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.
13,746 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top