From WikiChip
Difference between revisions of "mirc/identifiers/$mode"
(Created page with "{{mirc title|$mode Identifier}}'''$mode''' returns the Nth nick affected by a channel mode change, this identifier is meant to be used inside event such as {{mIRC|on op}}, {{m...") |
(No difference)
|
Latest revision as of 14:27, 13 February 2018
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$mode returns the Nth nick affected by a channel mode change, this identifier is meant to be used inside event such as on op, on rawmode, on mode etc
Synopsis[edit]
$mode(N)
Parameters[edit]
- N - The Nth nick affected, you can use N = 0 to get the total number of nick affected
Properties[edit]
if you use properties, it returns the Nth nick for the specified mode change:
- .owner - returns the Nth nick which is given the owner status
- .deowner - returns the Nth nick which is demoted from the owner status
- .op - returns the Nth nick which is given the op status
- .deop - returns the Nth nick which is demoted from the op status
- .help - returns the Nth nick which is given the help status
- .dehelp - returns the Nth nick which is demoted from the help status
- .voice - returns the Nth nick which is given the voice status
- .devoice - returns the Nth nick which is demoted from the voice status
- .ban - returns the Nth nick which is banned
- .unban - returns the Nth nick which is unbanned
Example[edit]
Although on op only triggers for op status, if you type /mode #chan +ob nick test, $mode(0) is still 2 and you can access all the modes lists
on *:op:#:echo -a $mode(0)
Compatibility[edit]
Added: mIRC v5.6
Added on: 03 Jun 1999
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.