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

m (PatrolBot moved page On usermode - mIRC to mirc/on events/on usermode: per new naming convention)
m (Bot: adding missing title)
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{mirc title|On Usermode - Events}}
 
The '''ON USERMODE''' event triggers when the local mIRC client's usermodes have been changed on a connection.
 
The '''ON USERMODE''' event triggers when the local mIRC client's usermodes have been changed on a connection.
  
This event fills the '''$-''' identifier with the new usermodes for the client.
+
This event fills the '''$1-''' identifier with the new usermodes for the client.
  
 
== Synopsis ==
 
== Synopsis ==
Line 26: Line 27:
 
{{mIRC on event list}}
 
{{mIRC on event list}}
  
[[Category:MIRC on events|usermode]]
+
[[Category:mIRC on events|usermode]]

Revision as of 20:24, 15 June 2017

The ON USERMODE event triggers when the local mIRC client's usermodes have been changed on a connection.

This event fills the $1- identifier with the new usermodes for the client.

Synopsis

ON <level>:USERMODE:<commands>

Parameters

<level>The level for the event to trigger.

<commands>The commands to be performed when the event listener's criteria is met.

Example

Halt the default mIRC response, and then echo the new details to the active window:

ON ^*:USERMODE: {
  echo -a * You have set new usermodes: $1-
  haltdef
}

Compatibility

Added: mIRC v5.0
Added on: 02 Apr 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also