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