From WikiChip
$nhnick Identifier - mIRC
< mirc‎ | identifiers

Note: This feature has essentially been replaced by $nick(). $nhnick returns the Nth nickname that is not an halfop/helper on the channel.

Note: $nhnick always returns nickname which have a status below halfop/helper, excluding the non standard +qa mode/status, it means that if a nickname is only +q, $nhnick() can return that nickname but a nickname being only +o can't be returned by $nhnick (it's not a status below halfop/helper)

Note2: the nickname doesn't have to be strictly an halfop/helper to be ignored, it means that someone which is an halfop/helper and is voiced won't be returned by $nhnick.

Synopsis

$nhnick(#channel,N/nick)

Parameters

  • #channel - The channel you want to check for non-halfop/helper nickname
  • N/nick - The Nth non-halfop/helper 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.


See Also