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:
24
bitchx-docs/5_Programming/on/nickname
Normal file
24
bitchx-docs/5_Programming/on/nickname
Normal file
@@ -0,0 +1,24 @@
|
||||
Synopsis:
|
||||
on [<modes>]nickname [<serial#>] [-|^]<match> { <action> }
|
||||
|
||||
Description:
|
||||
This hook is triggered whenever the client observes a nickname change.
|
||||
It only hooks once per nick change, not once per channel.
|
||||
|
||||
Parameters:
|
||||
$0 old nickname
|
||||
$1 new nickname
|
||||
|
||||
Examples:
|
||||
To distinguish the client from another user:
|
||||
on ^nickname "*" {
|
||||
if ( [$0] == N ) {
|
||||
echo *** Your nickname is now $1
|
||||
} {
|
||||
echo *** $0 has changed nicks to $1
|
||||
}
|
||||
}
|
||||
|
||||
See Also:
|
||||
nick(1); on(5) channel_nick
|
||||
|
||||
Reference in New Issue
Block a user