From WikiChip
On Nick - Events - mIRC
< mirc‎ | on events
Revision as of 19:19, 15 June 2017 by ChippyBot (talk | contribs) (Bot: adding missing title)

The ON NICK event triggers when a user is on the same channel as you, and they change their nickname.

This event fills the $chan, $newnick, and $nick identifiers.

Identifier Description
$chan The channel name where the event occurred. This can also be #.
$newnick The new nickname of the user. You can use it with $comchan for example.
$nick The user's previous nickname.

Synopsis

ON <level>:NICK:<commands>

Example

Echo the nickname change, and disregard mIRC's default nick change message:

ON ^*:NICK: {
  echo $chan * $nick |==> $newnick
 
  ; Halt the default mIRC message
  haltdef
}

The results of the above example resemble the following:

* Mr_SOCKS |==> noLaundry

Echo to the channel when the local nickname is changed, and halt mIRC's default message:

ON ME:^*:NICK: {
  echo $chan You are now ==> $newnick
 
  ; Halt the default mIRC message
  haltdef
}

The example above should have an output resembling the following:

You are now ==> whoMe

Compatibility

Added: mIRC v2.1a
Added on: 28 Feb 1995
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also