On SIGNAL » History » Revision 4
Revision 3 (Per Amundsen, 02/24/2017 09:37 PM) → Revision 4/5 (Per Amundsen, 10/28/2022 06:28 PM)
_Added in 1.9.0_
*<notextile>on <level>:SIGNAL:<name/matchtext>:<commands></notextile>*
Triggers if a script has used the [[/signal]] command to send a signal to all scripts.
_See also [[/signal]], [[$signal]]._
*Parameters*
<level> - The [[User Access Level]] for the event to trigger.
<name/matchtext> - The signal name/[[matchtext]] to listen to.
<commands> - The commands to be performed when the event listener's criteria is met.
*Example*
<pre>
; Listen to the signal name 'test'.
on *:SGNAL:test:echo -ag Signal $signal was called with parameters $1-
; Call the signal 'test' with the text 'Hello world'
/signal test Hello world
</pre>
*Hardcoded Signals*
Hardcoded signals useable for web clients.
<pre>
adiirc_to_web_menu - text,clickid,menustype\r\n
adiirc_to_web_scriptschanged - null
adiirc_to_web_addwindow - cid #channel/@name/nick/Status Window
adiirc_to_web_removewindow - cid #channel/@name/nick/Status Window
adiirc_to_web_updatewindow - cid #channel/@name/nick/Status Window
adiirc_to_web_titlechanged - cid #channel/@name/nick/Status Window
adiirc_to_web_textadded - cid #channel/@name/nick/Status Window
adiirc_to_web_addtool - cid name (cid can be -1)
adiirc_to_web_removetool - cid name (cid can be -1)
adiirc_to_web_picwinpaint - @name
</pre>