From WikiChip
Difference between revisions of "mirc/identifiers/$banmask"
(Created $banmask identifier - mIRC) |
m (→Compatibility: This was added in 4.5) |
||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | '''$banmask''' returns the current user ban through either an | + | {{mirc title|$banmask Identifier}}'''$banmask''' returns the current user ban through either an {{mIRC|on events/on ban|ON BAN Event}}, or an {{mIRC|on events/on ban|ON UNBAN Event}}. Most of the time, a banmask returns a {{mirc|wildcard}} address, generally resembling ''*user*@host.net''. |
+ | |||
== Synopsis == | == Synopsis == | ||
Line 8: | Line 9: | ||
== Example == | == Example == | ||
− | '''Message a | + | '''Message any channel where a ban has occurred, acknowledging the address the ban was placed on''' |
<source lang="mIRC">ON *:BAN:#: { | <source lang="mIRC">ON *:BAN:#: { | ||
msg # Uh, oh! Looks like the address $banmask has just been banned. | msg # Uh, oh! Looks like the address $banmask has just been banned. | ||
+ | }</source> | ||
+ | |||
+ | '''Message any channel where an unban has occurred, and report the address that was removed''' | ||
+ | <source lang="mIRC">ON *:UNBAN:#: { | ||
+ | msg # Oh, look! $banmask was just removed from the channel banlist. | ||
}</source> | }</source> | ||
== Compatibility == | == Compatibility == | ||
− | + | {{mIRC compatibility|4.5}} | |
== See Also == | == See Also == | ||
− | * | + | * {{mIRC|$bnick}} |
− | * | + | * {{mIRC|$ibl}} |
− | * | + | * {{mIRC|/ban}} |
− | * | + | * {{mIRC|on events/on ban|on ban event}} |
− | + | * {{mIRC|on events/on unban|on unban event}} | |
+ | {{mIRC identifier list}} | ||
− | [[Category:mIRC identifiers]] | + | [[Category:mIRC identifiers|banmask]] |
Latest revision as of 02:03, 20 February 2024
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$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]
mIRC identifier list