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.
Entire forum
➜ MUSHclient
➜ Bug reports
➜ OnPluginScreenDraw+Send to output+Omit speaking twice
OnPluginScreenDraw+Send to output+Omit speaking twice
|
Posting of new messages is disabled at present.
Refresh page
Posted by
| Tspivey
Canada (54 posts) Bio
|
Date
| Sun 23 Sep 2007 01:53 AM (UTC) |
Message
| I'm not sure if this is a bug, but it seems like one. if I run something through this trigger, it gets passed through OnPluginScreendraw twice, but only shows up in the output once as it should:
<triggers>
<trigger
enabled="y"
match="test: *"
omit_from_output="y"
send_to="2"
sequence="100"
>
<send>%1</send>
</trigger>
</triggers>
| Top |
|
Posted by
| Nick Gammon
Australia (23,122 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sun 23 Sep 2007 05:20 AM (UTC) |
Message
| Yes, it looks like if you send to output, like you did, it goes to OnPluginScreenDraw twice - once as the "extra output" (with the first argument to OnPluginScreenDraw being 0) and once as the note (with the first argument to OnPluginScreenDraw being 1).
I will fix that in the next version, however in the meantime, a reworking will get around it. Use "send to script (after omit)" and do a scripted Note instead, like this:
<triggers>
<trigger
enabled="y"
match="test: *"
omit_from_output="y"
send_to="14"
sequence="100"
>
<send>Note ("%1")</send>
</trigger>
</triggers>
|
- 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.
9,795 views.
Posting of new messages is disabled at present.
Refresh page
top