trigger sends command twice

Posted by Jedhi on Thu 08 Mar 2012 09:39 PM — 8 posts, 31,141 views.

#0
hi,

i'm trying to create a trigger when someone sends me a tell, i reply to it automessage. somehow it sends my reply twice. option is set to World.

any thoughts?
Australia Forum Administrator #1
Show please?

Template:copying
For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.
#2
trigger: http://dl.dropbox.com/u/60672885/trigger_bug.jpg

mud aardwolf. on the tech channel i recieved no help. on player only told, that he has the same problem and hasn't found a solution to fix it

<triggers>
<trigger
lines_to_match="3"
match="^(.+)tells you \'(.+)\'$"
omit_from_log="y"
regexp="y"
sequence="100"
>
<send>reply I think i'm AFK at the moment.</send>
</trigger>
</triggers>
Amended on Thu 08 Mar 2012 10:39 PM by Jedhi
Australia Forum Administrator #3
That trigger won't reply twice. Someone else had a similar issue recently and it turned out they had two such triggers. So each one replies.

Try turning on Game menu -> Trace, and then watch what happens. That tells you about each matching trigger.
#4
don't have 2 triggers. with trace:

TRACE: Matched trigger "^{tell}(?<msg>.*)"
TRACE: Executing trigger script "chats"
You tell Melviant 'I think i'm AFK at the moment.'

and this is done twice. maybe it has something to do with aardwolf client mod?
Australia Forum Administrator #5
Quote:

TRACE: Executing trigger script "chats"


What script "chats"?

Quote:

...and this is done twice.


What is done twice? Can you post the whole thing please?

Are you copying/pasting? Or retyping?
USA Global Moderator #6
Change your trigger pattern to

match="^{tell}(.+)tells you \'(.+)\'$"


This is an unfortunate, though in this case solvable, side effect of only having partial line substitution capability in mushclient and the apparent inability to have keep_evaluating="n" halt extra-plugin triggering (has this always been the case? I can't remember).

The very short version of a rather long story here is that the aard_chat_echo.xml plugin triggers on tagged tells and re-displays them sans tags in a way that causes coarsely defined triggers to fire again. This is unintentional, but not easily solved given the above.

For history see:
http://mushclient.com/forum/bbshowpost.php?id=11073&page=1
and uh...probably this...
http://mushclient.com/forum/bbshowpost.php?bbsubject_id=6356
Amended on Sat 10 Mar 2012 02:17 AM by Fiendish
#7
thanx fiendish!