From WikiChip
mirc/identifiers/$bnick
< mirc‎ | identifiers
Revision as of 22:15, 23 June 2014 by Zmodem (talk | contribs) (Created $bnick identifier - mIRC)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$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

None

Example

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 *:BAN:#: {
 
  ; 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

Added: mIRC v4.6

Added On: 07/09/96

See Also