Project

General

Profile

On SIGNAL » History » Version 5

Per Amundsen, 10/28/2022 06:29 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*<notextile>on <level>:SIGNAL:<name/matchtext>:<commands></notextile>*
4
5
Triggers if a script has used the [[/signal]] command to send a signal to all scripts.
6
7 2 Per Amundsen
_See also [[/signal]], [[$signal]]._
8 1 Per Amundsen
9
*Parameters*
10
11 3 Per Amundsen
<level> - The [[User Access Level]] for the event to trigger.
12 1 Per Amundsen
<name/matchtext> - The signal name/[[matchtext]] to listen to.
13
<commands> - The commands to be performed when the event listener's criteria is met.
14
15
*Example*
16
17
<pre>
18
; Listen to the signal name 'test'.
19
on *:SGNAL:test:echo -ag Signal $signal was called with parameters $1-
20
21
; Call the signal 'test' with the text 'Hello world'
22
/signal test Hello world
23
</pre>
24 4 Per Amundsen
25
*Hardcoded Signals*
26
27 5 Per Amundsen
Hardcoded signals useful for web clients.
28 4 Per Amundsen
29
<pre>
30
adiirc_to_web_menu - text,clickid,menustype\r\n
31
32
adiirc_to_web_scriptschanged - null
33
34
adiirc_to_web_addwindow - cid #channel/@name/nick/Status Window
35
adiirc_to_web_removewindow - cid #channel/@name/nick/Status Window
36
37
adiirc_to_web_updatewindow - cid #channel/@name/nick/Status Window
38
39
adiirc_to_web_titlechanged - cid #channel/@name/nick/Status Window
40
41
adiirc_to_web_textadded - cid #channel/@name/nick/Status Window
42
43
adiirc_to_web_addtool - cid name (cid can be -1)
44
adiirc_to_web_removetool - cid name (cid can be -1)
45
46
adiirc_to_web_picwinpaint - @name
47
</pre>