From WikiChip
mirc/identifiers/=$nick
< mirc‎ | identifiers
Revision as of 14:51, 24 June 2014 by Zmodem (talk | contribs) (Examples)

=$nick refers to the open DCC Chat, or 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:

/msg =myFriend Hey there! This is going to your DCC Chat window!

Synopsis

=$nick

Parameters

$nick$nick can be replaced with an actual, literal nickname, rather than using an event-driven filled identifier.

Examples

; 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

Added: mIRC v3.1

Added On: 23/04/95

See Also