on_channel_nick
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | on_channel_nick [2011/10/31 19:59] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Synopsis: | ||
+ | [[on]] channel_nick | ||
+ | |||
+ | ======Summary: | ||
+ | Triggered by other people' | ||
+ | |||
+ | ======Description: | ||
+ | This event is thrown each time someone (including you) on one of | ||
+ | your channels changes nickname. | ||
+ | with you, multiple events are thrown. | ||
+ | |||
+ | ======Parameters: | ||
+ | |$0 | The channel of the nick changer | | ||
+ | |$1 | The nick changer' | ||
+ | |$2 | The nick changer' | ||
+ | |||
+ | ======Default Action: | ||
+ | If you don't suppress this event, the client will throw an [[on nickname]] | ||
+ | event. | ||
+ | |||
+ | ======Examples: | ||
+ | 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; | ||
+ | }; | ||
+ | }; | ||
+ | |||
+ | ======History====== | ||
+ | This already existed in ircII. | ||
+ | |||
on_channel_nick.txt · Last modified: 2011/10/31 19:59 by 127.0.0.1