On OPEN » History » Version 4
Per Amundsen, 11/14/2015 10:15 AM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *<notextile>on <level>:OPEN:<?|@|=|!|*>:<matchtext>:<commands></notextile>* |
||
4 | |||
5 | 2 | Per Amundsen | Trigger for various events relating to the opening of a window of different types of windows. |
6 | 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 |
7 | 1 | Per Amundsen | |
8 | See also [[on CLOSE]]. |
||
9 | |||
10 | *Parameters* |
||
11 | |||
12 | <level> - The level for the event to trigger. |
||
13 | 3 | Per Amundsen | <?|@|=|!|*> - The [[Matchtarget]] to listen to. |
14 | <matchtext> - The [[Matchtext]] to listen to. |
||
15 | 1 | Per Amundsen | <commands> - The commands to be performed when the event listener's criteria is met. |
16 | |||
17 | *Example* |
||
18 | |||
19 | <pre> |
||
20 | ; Print a message when a query window is opened. |
||
21 | on *:OPEN:?:*:echo -ag Opened query window for $nick |
||
22 | </pre> |