From WikiChip
Difference between revisions of "mirc/identifiers/=$nick"
m (Bot: Automated text replacement (-Added On:.+\n?\n?\n?\n?\n? +)) |
|||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | '''=$nick''' | + | {{mirc title|1==$nick Identifier}}'''=$nick''' is a special identifier. Inside the {{mIRC|on chat}} and {{mIRC|on serv}} events, if you want to send a message to the dcc chat/serv window rather than to send a message as a private message on IRC, you have to prefix the nickname with the equal sign '='. For convenience =$nick can be used as a shortcut for = $+ $nick, where $nick is evaluated properly. |
− | |||
== Synopsis == | == Synopsis == | ||
Line 6: | Line 5: | ||
== Parameters == | == Parameters == | ||
− | + | none | |
== Examples == | == Examples == | ||
Line 33: | Line 32: | ||
== Compatibility == | == Compatibility == | ||
− | + | {{mIRC compatibility|3.1}} | |
== See Also == | == See Also == | ||
Line 40: | Line 39: | ||
{{mIRC identifier list}} | {{mIRC identifier list}} | ||
− | [[Category: | + | [[Category:mIRC identifiers|=$nick]] |
Latest revision as of 15:09, 21 April 2019
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
=$nick is a special identifier. Inside the on chat and on serv events, if you want to send a message to the dcc chat/serv window rather than to send a message as a private message on IRC, you have to prefix the nickname with the equal sign '='. For convenience =$nick can be used as a shortcut for = $+ $nick, where $nick is evaluated properly.
Synopsis[edit]
=$nick
Parameters[edit]
none
Examples[edit]
; Event messages a user back inside of a DCC Chat ; when they type: !myaddress [N], where [N] is a number, 0-9, of ; their address mask. ON *:CHAT:!myaddress *: { ; Set the %num variable to whatever comes after !myaddress var %num = $2 ; Verify that %num is a number, greater than or equal to 0, ; and less than 10 (0-9) since those are the only available ; options for $address(Nick,<N>). if ((%num isnum) && (%num >= 0) && (%num < 10)) { ; Using the =$nick identifier, a message is sent to the ; user, with their address mask utilizing the number mask ; they have requested. msg =$nick !myaddress Result: $address($nick,%num) } }
Now, any user in a DCC Chat can type: !myadress 3, and it would return their address masked in the form of: *!*Nickname@provider.net
Compatibility[edit]
Added: mIRC v3.1
Added on: 23 Apr 1995
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