Project

General

Profile

On SIGNAL » History » Version 4

Per Amundsen, 10/28/2022 06:28 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
Hardcoded signals useable for web clients.
28
29
<pre>
30
31
adiirc_to_web_menu - text,clickid,menustype\r\n
32
33
adiirc_to_web_scriptschanged - null
34
35
adiirc_to_web_addwindow - cid #channel/@name/nick/Status Window
36
adiirc_to_web_removewindow - cid #channel/@name/nick/Status Window
37
38
adiirc_to_web_updatewindow - cid #channel/@name/nick/Status Window
39
40
adiirc_to_web_titlechanged - cid #channel/@name/nick/Status Window
41
42
adiirc_to_web_textadded - cid #channel/@name/nick/Status Window
43
44
adiirc_to_web_addtool - cid name (cid can be -1)
45
adiirc_to_web_removetool - cid name (cid can be -1)
46
47
adiirc_to_web_picwinpaint - @name
48
</pre>