_Added in 1.9.0_
*on :CLOSE:|@|=|!|*>::*
Trigger for various events relating to the closing of a window of different types of windows.
See also [[on OPEN]].
*Parameters*
- The level for the event to trigger.
<*#?=!@> - The Matchtarget to listen to.
- Matchtext to listen to.
- The commands to be performed when the event listener's criteria is met.
*Example*
; Print a message when a query window is closed.
on *:CLOSE:?:*:echo -ag Closed query window for $nick