On OPEN » History » Version 11
Per Amundsen, 07/28/2018 09:24 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | 5 | Per Amundsen | *<notextile>on <level>:OPEN:<?|=|!|*>:<matchtext>:<commands></notextile>* |
4 | 8 | Per Amundsen | *<notextile>on <level>:OPEN:<?|=|!|*>:<commands></notextile>* |
5 | |||
6 | _For DCC Chat windows, the <matchtext> parameter is excluded, and it triggers only on successful connection._ |
||
7 | 1 | Per Amundsen | |
8 | 2 | Per Amundsen | Trigger for various events relating to the opening of a window of different types of windows. |
9 | 6 | Per Amundsen | |
10 | 4 | Per Amundsen | Note: If you halt an [[on OPEN]] event triggered by an incoming private message, no [[on TEXT]]/[[on ACTION]] events is triggered |
11 | 1 | Per Amundsen | |
12 | 11 | Per Amundsen | Note: For private windows, on OPEN only triggers when opening a new private window from a incoming private message. |
13 | |||
14 | 7 | Per Amundsen | _See also [[on CLOSE]]._ |
15 | 1 | Per Amundsen | |
16 | 9 | Per Amundsen | _Haltable using ^_ |
17 | |||
18 | 1 | Per Amundsen | *Parameters* |
19 | |||
20 | 10 | Per Amundsen | <level> - The [[User Access Level]] for the event to trigger. |
21 | 3 | Per Amundsen | <?|@|=|!|*> - The [[Matchtarget]] to listen to. |
22 | <matchtext> - The [[Matchtext]] to listen to. |
||
23 | 1 | Per Amundsen | <commands> - The commands to be performed when the event listener's criteria is met. |
24 | |||
25 | *Example* |
||
26 | |||
27 | <pre> |
||
28 | ; Print a message when a query window is opened. |
||
29 | on *:OPEN:?:*:echo -ag Opened query window for $nick |
||
30 | </pre> |