From WikiChip
Difference between revisions of "mirc/on events/on mode"
< mirc‎ | on events

m (Bot: Fixing links)
m (Bot: Fixing links)
Line 1: Line 1:
 
The '''ON MODE''' event triggers when a user changes channel modes on a channel.
 
The '''ON MODE''' event triggers when a user changes channel modes on a channel.
  
This event fills the '''[[$chan identifier - mIRC|$chan]]''', '''[[$nick identifier - mIRC|$nick]]''', and '''$1-''' identifiers with details relative to this event.
+
This event fills the '''{{mIRC|$chan}}''', '''{{mIRC|$nick}}''', and '''$1-''' identifiers with details relative to this event.
  
 
{| class="wikitable" style="margin-left: 105px; line-height: 25px;"
 
{| class="wikitable" style="margin-left: 105px; line-height: 25px;"

Revision as of 20:10, 5 July 2014

The ON MODE event triggers when a user changes channel modes on a channel.

This event fills the $chan, $nick, and $1- identifiers with details relative to this event.

Identifier Description
$chan The channel where modes were changed.
$nick The person who modified the channel modes.
$1- The new channel modes.

Synopsis

ON <level>:MODE:<#[,#]>:<commands>

Parameters

<level>The level for the event to trigger.

<#[,#]>The channel, or channels, to match the event listener. Can also be a wildcard.

Target Description
# Can remain #, to target all channels, or be a specific channel name.
[,#] Can add multiple channels to target beyond the initial specified channel name.

<commands>The commands to be performed when the event listener's criteria is met.

Example

Notice the channel when a user changes channel modes, and the local mIRC client is a channel operator:

ON @*:MODE:#:notice # $nick has modified the channel modes to: $1-

It is important to note that sending a channel notice to everyone at once is generally frowned upon unless one is an operator on the channel, or a bot has been instructed to do so.

Compatibility

Added: mIRC v3.5

Added On: 07/08/95

See Also