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

m (Bot: adding missing title)
m (Parameters: Link access levels)
Line 8: 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;">'''<matchtext>'''</span>The text to match in the event..

Revision as of 07:17, 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

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

Parameters

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

<matchtext>The text to match in the event..

<#[,#]>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

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

ON *:VOICE:#:msg # $vnick now has a voice, thanks to $nick $+ .

Compatibility

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