Initial import of the ircii-pana-1.1-final source tree.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
26
bitchx-docs/5_Programming/on/mode
Normal file
26
bitchx-docs/5_Programming/on/mode
Normal file
@@ -0,0 +1,26 @@
|
||||
Synopsis:
|
||||
on [<modes>]mode [<serial#>] [-|^]<match> { <action> }
|
||||
|
||||
Description:
|
||||
This hook is triggered whenever the client observes a mode change on a
|
||||
channel, or whenever the client changes its modes.
|
||||
|
||||
Parameters:
|
||||
$0 nickname of person issuing mode change
|
||||
$1 channel or nickname affected by mode change
|
||||
$2 modes changed
|
||||
$3- arguments to modes (if any)
|
||||
|
||||
Examples:
|
||||
To distinguish between user modes and channel modes:
|
||||
on ^mode "*" {
|
||||
if ( [$1] == N ) {
|
||||
echo *** User mode change for $1: $2-
|
||||
} {
|
||||
echo *** Mode change for $1 by $0: $2-
|
||||
}
|
||||
}
|
||||
|
||||
See Also:
|
||||
mode(1); on(5) mode_stripped
|
||||
|
||||
Reference in New Issue
Block a user