mIRC Homepage
Posted By: Cork retriving irc nick from address - 12/08/05 06:10 PM
hi
Im trying to retrive a users nick from its address and i found $dns().nick.
The prob is i can only get it to return the dns and ip, how can i get the .nick to work?
Posted By: Riamus2 Re: retriving irc nick from address - 12/08/05 06:21 PM
Note that for the below to work, $nick needs to be valid (in other words, put this in an event that gives $nick). Otherwise, replace $nick with whatever will give a valid nick such as a variable name or a token such as $2 or write the actual nick in there.

//echo -a $gettok($address($nick,5),1,33)
Posted By: stefys99 Re: retriving irc nick from address - 13/08/05 12:20 PM
Quote:
hi
Im trying to retrive a users nick from its address and i found $dns().nick.
The prob is i can only get it to return the dns and ip, how can i get the .nick to work?

The .nick works only if dns was called with a nick, like /dns stefys. Else .nick won't work
© mIRC Discussion Forums