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

m (Bot: adding missing title)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The '''ON DEVOICE''' event triggers whenever a user on a channel has had their [[Voice channel - IRC|voice]] privileges removed.
+
{{mirc title|On Devoice - Events}}
 
+
The '''ON DEVOICE''' event triggers whenever a user on a channel has had their voice privileges (mode -v) removed.
This event also fills the [[$vnick identifier - mIRC|$vnick]] identifier with the nickname of the user who was removed from [[Channel voice - IRC|Channel voice]] status. The [[$nick identifier - mIRC|$nick]] identifier points to the user who removed them.
 
  
 
== Synopsis ==
 
== Synopsis ==
Line 7: 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|$vnick}} ===
  
<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 devoiced.
 
 
<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 ==
Line 22: Line 23:
  
 
== Compatibility ==
 
== Compatibility ==
Added: mIRC v4.72
+
{{mIRC compatibility|4.72}}
 
 
Added On: 09/01/97
 
  
 
== See Also ==
 
== See Also ==
Line 33: Line 32:
 
* [[On owner - mIRC|ON OWNER]]
 
* [[On owner - mIRC|ON OWNER]]
 
* [[On voice - mIRC|ON VOICE]]
 
* [[On voice - mIRC|ON VOICE]]
* [[/mode command - mIRC|/mode]]
+
* {{mIRC|/mode}}
* [[$mode identifier - mIRC|$mode]]
+
* {{mIRC|$mode}}
 +
{{mIRC on event list}}
  
[[Category:mIRC on events]]
+
[[Category:mIRC on events|devoice]]

Latest revision as of 20:13, 15 June 2017

The ON DEVOICE event triggers whenever a user on a channel has had their voice privileges (mode -v) removed.

Synopsis[edit]

ON <level>:DEVOICE:<#[,#]>:<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]

$vnick[edit]

Returns the nickname of the user being devoiced.

Example[edit]

Acknowledge when a user has had their voice user level removed:

ON *:DEVOICE:#:msg # Uh oh, looks like $vnick no longer has a voice, thanks to $nick $+ .

Compatibility[edit]

Added: mIRC v4.72
Added on: 09 Jan 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]