on channel_nick
Triggered by other people's nick changes.
This event is thrown each time someone (including you) on one of your channels changes nickname. If the nick changer is on multiple channels with you, multiple events are thrown.
$0 | The channel of the nick changer |
$1 | The nick changer's old nickname |
$2 | The nick changer's new nickname |
If you don't suppress this event, the client will throw an on nickname event.
To make a distinction between the client changing nicks and other people:
on ^channel_nick '% $servernick() *' (chan, oldnick, newnick) { xecho -b You have changed nicks to $newnick; }; on ^channel_nick * (chan, oldnick, newnick) { if (iscurchan($chan)) { xecho -b $oldnick has changed nicks to $newnick; } else { xecho -b $oldnick has changed nicks to $newnick on $chan; }; };
This already existed in ircII.