m (Bot: Automated text replacement (-Added On:.+\n?\n?\n?\n?\n? +)) |
m (→Parameters: Link access levels) |
||
(8 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{mirc title|On Servermode - Events}} | ||
The '''ON SERVERMODE''' event triggers when a server changes channel modes on a channel. | The '''ON SERVERMODE''' event triggers when a server changes channel modes on a channel. | ||
+ | == Overview == | ||
This event fills the '''{{mIRC|$chan}}''', and '''$1-''' identifiers with details relative to this event. | This event fills the '''{{mIRC|$chan}}''', and '''$1-''' identifiers with details relative to this event. | ||
− | {| class="wikitable" style=" | + | {| class="wikitable" style="line-height: 25px;" |
|- | |- | ||
! Identifier !! Description | ! Identifier !! Description | ||
Line 16: | Line 18: | ||
== Parameters == | == Parameters == | ||
− | <span style="display: inline-block; width: 105px;">'''<level>'''</span>The | + | <span style="display: inline-block; width: 105px;">'''<level>'''</span>The corresponding {{mIRC|access levels}} for the event to trigger. |
− | <span style="display: inline-block; width: 105px;">'''<#[,#]>'''</span>The channel, or channels, to match the event listener. Can also be a | + | <span style="display: inline-block; width: 105px;">'''<#[,#]>'''</span>The channel, or channels, to match the event listener. Can also be a {{mirc|wildcard}}. |
{| class="wikitable" style="margin-left: 105px;" | {| class="wikitable" style="margin-left: 105px;" | ||
Line 38: | Line 40: | ||
== Compatibility == | == Compatibility == | ||
− | + | {{mIRC compatibility|3.5}} | |
== See Also == | == See Also == | ||
Line 46: | Line 48: | ||
{{mIRC on event list}} | {{mIRC on event list}} | ||
− | [[Category: | + | [[Category:mIRC on events|servermode]] |
Latest revision as of 07:04, 6 February 2024
The ON SERVERMODE event triggers when a server changes channel modes on a channel.
Overview[edit]
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[edit]
ON <level>:SERVERMODE:<#[,#]>:<commands>
Parameters[edit]
<level>The corresponding access levels 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[edit]
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[edit]
Added: mIRC v3.5
Added on: 07 Aug 1995
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See Also[edit]
A on Action, on Active, on Agent, on Appactive B on Ban C on Char, on Chat, on Chatclose, on Chatopen, on Close, on Connect, on Connectfail, on Ctcpreply D on Dccserver, on Dehelp, on Deop, on Deowner, on Devoice, on Dialog, on Disconnect, on Dns |
J on Join K on Keydown, on Keyup, on Kick M on Midiend, on Mode, on Mp3end |
Q on Queryclose, on Queryopen, on Quit S on Sendfail, on Serv, on Servclose, on Servermode, on Serverop, on Servopen, on Signal, on Snotice, on Sockclose, on Socklisten, on Sockopen, on Sockread, on Sockwrite, on Start U on Udpread, on Udpwrite, on Unban, on Unload, on Unotify, on Usermode |