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

(See Also)
m (Compatibility: This was added in 3.2)
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
The '''ON DEOP''' event triggers whenever a user on a channel has had their [[Channel operator - IRC|channel operator]] privileges removed.
+
{{mirc title|On Deop - Events}}
 +
The '''ON DEOP''' event triggers whenever a user on a channel has had their op privileges (mode -o) removed.
  
 
== Synopsis ==
 
== Synopsis ==
Line 5: Line 6:
  
 
== Parameters ==
 
== Parameters ==
<span style="display: inline-block; width: 105px;">'''<level>'''</span>The level for the event to trigger..
+
* '''<level>''' - The corresponding {{mIRC|access levels}} for the event to trigger.
 +
* '''<*><#>''' - The place, or places where the event listens, you can specify specific name of window, seperate them by comma.
 +
** '''*''' - Any channel window
 +
** '''#''' - Any channel window
 +
* '''<commands>''' - The commands to be performed when the event triggers
  
<span style="display: inline-block; width: 105px;">'''<matchtext>'''</span>The text to match in the event..
+
== {{mIRC|local identifiers}} ==
  
<span style="display: inline-block; width: 105px;">'''<#[,#]>'''</span>The channel, or channels where the event listens.
+
=== {{mIRC|$opnick}} ===
  
<div style="background-color: rgba(0,0,0,.03); display: block;"><span style="border-right: 1px dashed rgba(0,0,0,.15); display: inline-block; margin-left: 105px; margin-right: 25px; width: 60px;">'''#'''</span>Any channel if left by itself, otherwise refers to a specific channel</div>
+
Returns the nickname of the user being deopped.
  
<div style="background-color: rgba(0,0,0,.06); display: block;"><span style="border-right: 1px dashed rgba(0,0,0,.15); display: inline-block; margin-left: 105px; margin-right: 25px; width: 60px;">'''[,#]'''</span>List of specific channel names</div>
 
  
 
== Example ==
 
== Example ==
 
Let the channel know when a user's operator privilege has been removed:
 
Let the channel know when a user's operator privilege has been removed:
<source lang="mIRC">ON *:DEOP:#:msg # Oh no, $nick has had their operator privilege removed :(</source>
+
<source lang="mIRC">ON *:DEOP:#:msg # Oh no, $opnick has had their operator privilege removed :(</source>
  
 
== Compatibility ==
 
== Compatibility ==
Added: mIRC v2.1a
+
{{mIRC compatibility|3.2}}
 
 
Added On: 28/02/95
 
  
 
== See Also ==
 
== See Also ==
* [[On deop - mIRC|ON DEOP]]
 
 
* [[On deowner - mIRC|ON DEOWNER]]
 
* [[On deowner - mIRC|ON DEOWNER]]
 +
* [[On devoice - mIRC|ON DEVOICE]]
 
* [[On help - mIRC|ON HELP]]
 
* [[On help - mIRC|ON HELP]]
 
* [[On op - mIRC|ON OP]]
 
* [[On op - mIRC|ON OP]]
 
* [[On owner - mIRC|ON OWNER]]
 
* [[On owner - mIRC|ON OWNER]]
* [[/mode command - mIRC|/mode]]
+
* [[On voice - mIRC|ON VOICE]]
* [[$mode identifier - mIRC|$mode]]
+
* {{mIRC|/mode}}
 +
* {{mIRC|$mode}}
 +
{{mIRC on event list}}
  
[[Category:mIRC on events]]
+
[[Category:mIRC on events|deop]]

Latest revision as of 10:01, 17 February 2024

The ON DEOP event triggers whenever a user on a channel has had their op privileges (mode -o) removed.

Synopsis[edit]

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

Parameters[edit]

  • <level> - The corresponding access levels for the event to trigger.
  • <*><#> - The place, or places where the event listens, you can specify specific name of window, seperate them by comma.
    • * - Any channel window
    • # - Any channel window
  • <commands> - The commands to be performed when the event triggers

local identifiers[edit]

$opnick[edit]

Returns the nickname of the user being deopped.


Example[edit]

Let the channel know when a user's operator privilege has been removed:

ON *:DEOP:#:msg # Oh no, $opnick has had their operator privilege removed :(

Compatibility[edit]

Added: mIRC v3.2
Added on: 02 May 1995
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]