On KICK » History » Version 5
Per Amundsen, 06/21/2021 09:52 PM
| 1 | 1 | Per Amundsen | _Added in 1.8.10_ |
|---|---|---|---|
| 2 | |||
| 3 | *<notextile>on <level>:KICK:<#|*>:<commands></notextile>* |
||
| 4 | |||
| 5 | Triggers when a user is kicked from a channel. |
||
| 6 | |||
| 7 | _See also [[/kick]], [[$knick]]._ |
||
| 8 | |||
| 9 | 2 | Per Amundsen | _Haltable using ^_ |
| 10 | |||
| 11 | 1 | Per Amundsen | *Parameters* |
| 12 | |||
| 13 | 3 | 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 | 5 | Per Amundsen | ; Print a kick. |
| 21 | on *:KICK:*:echo -ag $knick was kicked from $chan by $nick with reason: $1- |
||
| 22 | |||
| 23 | ; Replace kick message with a custom kick message. |
||
| 24 | on ^*:KICK:*:echo -trc kick # * $nick has kicked $knick from # $iif($1-, ( $+ $1- $+ ),) | halt |
||
| 25 | 1 | Per Amundsen | </pre> |