On OPEN » History » Version 9
  Per Amundsen, 01/22/2017 04:27 AM 
  
| 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 | 7 | Per Amundsen | _See also [[on CLOSE]]._ | 
| 13 | 1 | Per Amundsen | |
| 14 | 9 | Per Amundsen | _Haltable using ^_ | 
| 15 | |||
| 16 | 1 | Per Amundsen | *Parameters* | 
| 17 | |||
| 18 | <level> - The level for the event to trigger. | ||
| 19 | 3 | Per Amundsen | <?|@|=|!|*> - The [[Matchtarget]] to listen to. | 
| 20 | <matchtext> - The [[Matchtext]] to listen to. | ||
| 21 | 1 | Per Amundsen | <commands> - The commands to be performed when the event listener's criteria is met. | 
| 22 | |||
| 23 | *Example* | ||
| 24 | |||
| 25 | <pre> | ||
| 26 | ; Print a message when a query window is opened. | ||
| 27 | on *:OPEN:?:*:echo -ag Opened query window for $nick | ||
| 28 | </pre> |