From WikiChip
Difference between revisions of "mirc/on events/on nick"
m (Bot: Adding a template (template:mIRC on event list)) |
m (Bot: Fixing links) |
||
Line 1: | Line 1: | ||
The '''ON NICK''' event triggers when a user is on the same channel as you, and they change their nickname. | The '''ON NICK''' event triggers when a user is on the same channel as you, and they change their nickname. | ||
− | This event fills the ''' | + | This event fills the '''{{mIRC|$chan}}''', '''{{mIRC|$newnick}}''', and '''{{mIRC|$nick}}''' identifiers. |
{| class="wikitable" style="line-height: 25px; margin-left: 75px;" | {| class="wikitable" style="line-height: 25px; margin-left: 75px;" | ||
Line 49: | Line 49: | ||
* [[On mode - mIRC|ON MODE]] | * [[On mode - mIRC|ON MODE]] | ||
* [[On part - mIRC|ON PART]] | * [[On part - mIRC|ON PART]] | ||
− | * | + | * {{mIRC|$newnick}} |
− | * | + | * {{mIRC|$nick}} |
{{mIRC on event list}} | {{mIRC on event list}} | ||
[[Category:MIRC on events]] | [[Category:MIRC on events]] |
Revision as of 20:10, 5 July 2014
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. |
$nick | The user's previous nickname. |
Contents
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/02/95
See Also
mIRC on event list