Project

General

Profile

Signal » History » Version 2

Per Amundsen, 06/27/2016 05:03 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*/signal [-n] <name> [parameters]*
4
5
Trigger on SIGNAL events in all scripts that listen for signals.
6
7
*Switches*
8
9 2 Per Amundsen
-n - Makes the script trigger immediately.
10 1 Per Amundsen
11
*Parameters*
12
13
<name> - Signal to trigger.
14
[parameters] - Parameters to send to the signal.
15
16
*Example*
17
18
<pre>
19
;Setup a listening SIGNAL event.
20
on *:SIGNAL:testsignal:echo -a Signal was called with parameters: $1-
21
22
;Call the testsignal with parameters Hello world!
23
/signal testsignal Hello world!
24
</pre>