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

$bnick refers to the nickname of the user either banned, or unbanned, during both an ON BAN Event, and an ON UNBAN Event.

Note: $bnick is not always set, because sometimes nicknames aren't even added to a certain ban/banmask.


Paramters[edit]

None

Example[edit]

Message any channel when a user has been banned

ON *:BAN:#: {
 
  ; We use this check to make sure the $bnick identifier
  ; has been filled, that way there are no unforeseen issues.
  if ($bnick) {
    msg # Looks like $bnick has been banned.
  }
}

Message any channel when a user has been unbanned

ON *:UNBAN:#: {
 
  ; We use this check to make sure the $bnick identifier
  ; has been filled, that way there are no unforeseen issues.
  if ($bnick) {
    msg # Awesome! $bnick is now unbanned :)
  }
}

Compatibility[edit]

Added: mIRC v4.6
Added on: 07 Sep 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]

[Expand]
v · d · e mIRC identifier list