From WikiChip
Difference between revisions of "mirc/identifiers/$bnick"
m (→See Also) |
(should be :UNBAN:) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | '''$bnick''' refers to the nickname of the user either banned, or unbanned, during both an [[On ban - mIRC|ON BAN Event]], and an [[On unban - mIRC|ON UNBAN Event]]. | + | {{mirc title|$bnick Identifier}}'''$bnick''' refers to the nickname of the user either banned, or unbanned, during both an [[On ban - mIRC|ON BAN Event]], and an [[On unban - mIRC|ON UNBAN Event]]. |
''Note:'' '''$bnick''' is not always set, because sometimes nicknames aren't even added to a certain ban/banmask. | ''Note:'' '''$bnick''' is not always set, because sometimes nicknames aren't even added to a certain ban/banmask. | ||
+ | |||
== Paramters == | == Paramters == | ||
Line 18: | Line 19: | ||
'''Message any channel when a user has been unbanned''' | '''Message any channel when a user has been unbanned''' | ||
− | <source lang="mIRC">ON *: | + | <source lang="mIRC">ON *:UNBAN:#: { |
; We use this check to make sure the $bnick identifier | ; We use this check to make sure the $bnick identifier | ||
Line 38: | Line 39: | ||
{{mIRC identifier list}} | {{mIRC identifier list}} | ||
− | [[Category: | + | [[Category:mIRC identifiers|bnick]] |
Latest revision as of 15:38, 1 February 2020
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$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.
Contents
Paramters[edit]
None
Example[edit]
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 *:UNBAN:#: { ; 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[edit]
Added: mIRC v4.6
Added on: 07 Sep 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