on_nickname
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | on_nickname [2006/08/29 16:08] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Synopsis: | ||
+ | [[on]] [< | ||
+ | |||
+ | ======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 ) { | ||
+ | xecho -b Your nickname is now $1 | ||
+ | } { | ||
+ | xecho -b $0 has changed nicks to $1 | ||
+ | } | ||
+ | } | ||
+ | |||
on_nickname.txt · Last modified: 2006/08/29 16:08 by 127.0.0.1