Project

General

Profile

On OPEN » History » Version 7

Per Amundsen, 11/16/2015 04:23 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 7 Per Amundsen
_See also [[on CLOSE]]._
10 1 Per Amundsen
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>