User Tools

Site Tools


on_kick

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

on_kick [2006/08/29 16:08] (current)
Line 1: Line 1:
 +======Synopsis:​======
 +[[on]] [<​modes>​]kick [<​serial#>​] [-|^]<​match>​ { <​action>​ }
 +
 +======Description:​======
 +This hook is triggered whenever the client observes another client (or
 +itself!) being kicked from a channel.
 +
 +======Parameters:​======
 +|$0    |nickname of user kicked from channel ​     |
 +|$1    |nickname of user kicking $0 from channel ​ |
 +|$2    |channel kick observed on                  |
 +|$3-   |kick message ​                             |
 +
 +======Examples:​======
 +To distinguish who is being kicked on a channel:
 +   on ^kick "​*"​ {
 +      if ( [$0] == N ) {
 +         xecho -b You have been kicked from $2 by $1 \($3-\)
 +      } {
 +         xecho -b $0 has been kicked from $2 by $1 \($3-\)
 +      }
 +   }
 +
  
on_kick.txt ยท Last modified: 2006/08/29 16:08 (external edit)