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

m (Parameters: Remove unneeded <matchtext> for a non-text event.)
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{mirc title|On Voice - Events}}
 
The '''ON VOICE''' event triggers whenever a user on a channel has been elevated to [[Voice channel - IRC|voice]].
 
The '''ON VOICE''' event triggers whenever a user on a channel has been elevated to [[Voice channel - IRC|voice]].
  
This event also fills the [[$vnick identifier - mIRC|$vnick]] identifier with the nickname of the user who was added to [[Channel voice - IRC|Channel voice]] status. The [[$nick identifier - mIRC|$nick]] identifier points to the user who added them.
+
This event also fills the {{mIRC|$vnick}} identifier with the nickname of the user who was added to [[Channel voice - IRC|Channel voice]] status. The {{mIRC|$nick}} identifier points to the user who added them.
  
 
== Synopsis ==
 
== Synopsis ==
Line 7: Line 8:
  
 
== Parameters ==
 
== Parameters ==
<span style="display: inline-block; width: 105px;">'''<level>'''</span>The level for the event to trigger..
+
<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;">'''<matchtext>'''</span>The text to match in the event..
 
  
 
<span style="display: inline-block; width: 105px;">'''<#[,#]>'''</span>The channel, or channels where the event listens.
 
<span style="display: inline-block; width: 105px;">'''<#[,#]>'''</span>The channel, or channels where the event listens.
Line 22: Line 21:
  
 
== Compatibility ==
 
== Compatibility ==
Added: mIRC v4.72
+
{{mIRC compatibility|4.72}}
 
 
Added On: 09/01/97
 
  
 
== See Also ==
 
== See Also ==
Line 33: Line 30:
 
* [[On op - mIRC|ON OP]]
 
* [[On op - mIRC|ON OP]]
 
* [[On owner - mIRC|ON OWNER]]
 
* [[On owner - mIRC|ON OWNER]]
* [[/mode command - mIRC|/mode]]
+
* {{mIRC|/mode}}
* [[$mode identifier - mIRC|$mode]]
+
* {{mIRC|$mode}}
 +
{{mIRC on event list}}
  
[[Category:mIRC on events]]
+
[[Category:mIRC on events|voice]]

Latest revision as of 09:13, 6 February 2024

The ON VOICE event triggers whenever a user on a channel has been elevated to voice.

This event also fills the $vnick identifier with the nickname of the user who was added to Channel voice status. The $nick identifier points to the user who added them.

Synopsis[edit]

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

Parameters[edit]

<level>The corresponding access levels for the event to trigger.

<#[,#]>The channel, or channels where the event listens.

#Any channel if left by itself, otherwise refers to a specific channel
[,#]List of specific channel names

Example[edit]

Acknowledge when a user has had their user level elevated to voice:

ON *:VOICE:#:msg # $vnick now 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]