From WikiChip
Difference between revisions of "mirc/identifiers/$banmask"
< mirc‎ | identifiers

(Created $banmask identifier - mIRC)
 
m (Example)
Line 8: Line 8:
  
 
== Example ==
 
== Example ==
'''Message a channel acknowledging the address when a ban takes place'''
+
'''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>
  

Revision as of 21:47, 23 June 2014

$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