From WikiChip
Difference between revisions of "mirc/identifiers/$nhnick"
(Created page with "{{mirc title|$nhnick Identifier}}'''$nhnick''' returns the Nth nickname that is not an operator '''nor a halfop/helper''' on the channel. '''Note''': it means that if a nickn...") |
|||
Line 2: | Line 2: | ||
'''Note''': it means that if a nickname is only +q, $nhnick() can return that nickname | '''Note''': it means that if a nickname is only +q, $nhnick() can return that nickname | ||
+ | |||
'''Note2''': the rest of this page will still use the term non-halfop to refer to this identifier although that's a bit misleading given the real behavior. | '''Note2''': the rest of this page will still use the term non-halfop to refer to this identifier although that's a bit misleading given the real behavior. | ||
Revision as of 16:05, 5 January 2018
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$nhnick returns the Nth nickname that is not an operator nor a halfop/helper on the channel.
Note: it means that if a nickname is only +q, $nhnick() can return that nickname
Note2: the rest of this page will still use the term non-halfop to refer to this identifier although that's a bit misleading given the real behavior.
Synopsis
$nhnick(#channel,N/nick)
Parameters
- #channel - The channel you want to check for non-halfop nickname
- N/nick - The Nth non-halfop nick on the channel, or if you pass a nickname, it returns the number N, where $nhnick(#,N) return the nickname.
Note: With a third and fourth parameter, i.e. $nhnick(#,N/nick,aohvr,aohvr), this identifier behaves exactly the same as $nick(#,N/nick,aohvr,aohvr)
Properties
None
Example
//echo -a $nhnick($chan,1)
Compatibility
Added: mIRC v2.1a
Added on: 28 Feb 1995
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.