From WikiChip
$nhnick Identifier - mIRC
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 a halfop/helper nor an operator 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.