StopEvaluatingTriggers from script functions

Posted by Fiendish on Sat 18 Apr 2015 09:17 PM — 2 posts, 8,216 views.

USA Global Moderator #0
The docs for StopEvaluatingTriggers says
Quote:
However calling StopEvaluatingTriggers (true) in a script would still stop evaluation of triggers in other plugins.


I've found this to not be true. Maybe I'm missing something?


<trigger
   enabled="y"
   match="^{say}(?<msg>.*)"
   regexp="y"
   script="chats"
   omit_from_output="y"
   sequence="100"
></trigger>

...

function chats()
   print("hello")
   StopEvaluatingTriggers (true)
end


Prints hello, but doesn't seem to actually stop triggers.

<trigger
   enabled="y"
   match="^{say}(?<msg>.*)"
   regexp="y"
   script="chats"
   omit_from_output="y"
   sequence="100"
   send_to="12"
><send>StopEvaluatingTriggers(true)</send></trigger>

Of course does.
Australia Forum Administrator #1
I think you are right. It's a documentation error. All triggers are evaluated for all plugins before the scripts are called (in the script file).