mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2006
Posts: 167
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Aug 2006
Posts: 167
Is there any $identifier that will return my own mIRC client's nick!~email_or_ident@host even when the IAL is empty or off?

The output of $address($me,5) is exactly what I need. However, it only works when the IAL is enabled (and if enabled, only if my nick is also in it).

I thought about constructing the string myself using variables like $me and $host. However, if I resorted to constructing it myself, I would not know how to handle the "~email_or_ident@" portion, because I wouldn't know how to detect whether the server assigned me the ~ prefix, or whether the server chose to use my identd or email string upon originally connecting.

The only solution I can see currently is having the script run "/userhost $me" and then capture and parse the reply. However this particular script cannot wait for a server response. It must know the nick!~email_or_ident@host string immediately.

Any thoughts?

Joined: May 2014
Posts: 1
E
Mostly harmless
Offline
Mostly harmless
E
Joined: May 2014
Posts: 1
$gettok($ial($nick),2,33),1,64) ----- Returns: xxx.xxx.xxx.xxx@userhost.net
$gettok($ial($nick).addr,1,64) ----- Returns: xxx.xxx.xxx.xxx
$address($nick,1) ----- Returns: *!*xxx.xxx@userhost.net
$ial($nick) ----- Returns: NickName!xxx.xxx.xxx.xxx@userhost.net


Link Copied to Clipboard