On PART » History » Version 6
Per Amundsen, 02/24/2017 09:38 PM
1 | 1 | Per Amundsen | _Added in 1.8.10_ |
---|---|---|---|
2 | |||
3 | *<notextile>on <level>:PART:<#|*>:<commands></notextile>* |
||
4 | |||
5 | Triggers when a user parts a channel. |
||
6 | |||
7 | 2 | Per Amundsen | _See also [[on JOIN]], [[/part]]._ |
8 | 1 | Per Amundsen | |
9 | 3 | Per Amundsen | _Haltable using ^_ |
10 | |||
11 | 1 | Per Amundsen | *Parameters* |
12 | |||
13 | 6 | Per Amundsen | <level> - The [[User Access Level]] for the event to trigger. |
14 | 1 | Per Amundsen | <#|*> - The [[Matchtarget]] to listen to. |
15 | <commands> - The commands to be performed when the event listener's criteria is met. |
||
16 | |||
17 | *Example* |
||
18 | |||
19 | <pre> |
||
20 | on *:PART:*:echo -ag $nick parted $chan |
||
21 | 4 | Per Amundsen | |
22 | ; Override the part event to print a custom text and then tell AdiIRC to ignore it's own text. |
||
23 | on ^*:PART:*:{ |
||
24 | 5 | Per Amundsen | echo -tcbf part $chan * $nick ( $+ $fulladdress $+ ) parts $chan |
25 | 4 | Per Amundsen | halt |
26 | } |
||
27 | 1 | Per Amundsen | </pre> |