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

m (Bot: Adding a template (template:mIRC on event list))
m (Bot: Fixing links)
Line 45: Line 45:
 
* [[On mode - mIRC|ON MODE]]
 
* [[On mode - mIRC|ON MODE]]
 
* [[Access levels - mIRC|Access Levels]]
 
* [[Access levels - mIRC|Access Levels]]
* [[/mode command - mIRC|/mode]]
+
* {{mIRC|/mode}}
 
{{mIRC on event list}}
 
{{mIRC on event list}}
  
 
[[Category:MIRC on events]]
 
[[Category:MIRC on events]]

Revision as of 19:11, 5 July 2014

The ON SERVERMODE event triggers when a server changes channel modes on a channel.

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

Identifier Description
$chan The channel where modes were changed.
$1- The new channel modes.

Synopsis

ON <level>:SERVERMODE:<#[,#]>:<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 the server changes channel modes, and the local mIRC client is a channel operator:

ON @*:SERVERMODE:#: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