From WikiChip
Difference between revisions of "mirc/identifiers/$banmask"
(Created $banmask identifier - mIRC) |
|||
(8 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> | ||
Line 17: | Line 23: | ||
== 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]] |
Revision as of 14:19, 20 October 2018
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
$banmask
Parameters
None
Example
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
See Also
mIRC identifier list