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