Project

General

Profile

On OPEN » History » Version 8

Per Amundsen, 12/31/2016 12:37 PM

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