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

$banmask returns the current user ban through either an ON BAN Event, or an ON UNBAN Event. Most of the time, a banmask returns a wildcard address, generally resembling *user*@host.net.


Synopsis[edit]

$banmask

Parameters[edit]

None

Example[edit]

Message any channel where a ban has occurred, acknowledging the address the ban was placed on

ON *:BAN:#: {
  msg # Uh, oh! Looks like the address $banmask has just been banned.
}

Message any channel where an unban has occurred, and report the address that was removed

ON *:UNBAN:#: {
  msg # Oh, look! $banmask was just removed from the channel banlist.
}

Compatibility[edit]

Added: mIRC v4.5
Added on: 30 Jun 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