From WikiChip
Editing mirc/=$nick identifier
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | {{mirc title|1==$nick Identifier}}'''=$nick''' refers to the open [[Dcc chat - mIRC|DCC Chat]], or [[Dcc fserv - mIRC|DCC Fserv]] window for a user. The '''=$nick''' can be used in this identifier form, or a literal nickname can be used in its place, such as in the case of the following: | |
+ | <source lang="mIRC">/msg =myFriend Hey there! This is going to your DCC Chat window!</source> | ||
+ | |||
+ | |||
+ | == Synopsis == | ||
+ | <pre>=$nick</pre> | ||
+ | |||
+ | == Parameters == | ||
+ | <span style="display: inline-block; width: 70px;">'''$nick'''</span>'''{{mIRC|$nick}}''' can be replaced with an actual, literal nickname, rather than using an event-driven filled identifier. | ||
+ | |||
+ | == Examples == | ||
+ | <source lang="mIRC">; 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) | ||
+ | } | ||
+ | }</source> | ||
+ | |||
+ | 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 == | ||
+ | {{mIRC compatibility|3.1}} | ||
+ | |||
+ | == See Also == | ||
+ | * [[On chat - mIRC|ON CHAT]] | ||
+ | * [[On serv - mIRC|ON SERV]] | ||
+ | {{mIRC identifier list}} | ||
+ | |||
+ | [[Category:mIRC identifiers|=$nick identifier - mIRC]] |