Added in 1.9.0

on <level>:OPEN:<?|=|*>:<matchtext>:<commands>
on <level>:OPEN:<=|*>:<commands>

Trigger for various events relating to the opening of a window of different types of windows.

Note: If you halt an on OPEN event triggered by an incoming private message, no on TEXT/on ACTION events is triggered

For private chat windows, on OPEN only triggers when opening a new private window from a incoming private message.

For private chat windows, the <matchtext> parameter is required.

For DCC chat windows, the <matchtext> parameter is excluded, and it triggers only on successful connection.

See also on CLOSE.

Haltable using ^


<level> - The User Access Level for the event to trigger.
<?|@|=|!|*> - The Matchtarget to listen to.
<matchtext> - The Matchtext to listen to.
<commands< - The commands to be performed when the event listener's criteria is met.


; Print a message when a query window is opened.
on *:OPEN:?:*:echo -ag Opened query window for $nick

; Print a message when a dcc chat window is established.
on *:OPEN:=:echo -ag Opened dcc chat window for $nick

Updated by Per Amundsen about 2 years ago · 24 revisions

Also available in: PDF HTML TXT