User Tools

Site Tools


on_channel_nick

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

on_channel_nick [2011/10/31 19:59] (current)
Line 1: Line 1:
 +======Synopsis:​======
 +[[on]] channel_nick
 +
 +======Summary:​======
 +Triggered by other people'​s [[nick]] changes.
 +
 +======Description:​======
 +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.  ​
 +
 +======Parameters:​======
 +|$0   | The channel of the nick changer |
 +|$1   | The nick changer'​s old nickname |
 +|$2   | The nick changer'​s new nickname |
 +
 +======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 (external edit)