Site Tools


on_kick
no way to compare when less than two revisions

Differences

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


on_kick [2006/08/29 16:08] (current) – created - external edit 127.0.0.1
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 by 127.0.0.1