mIRC Homepage
Posted By: Chamillionaire $address problem - 04/10/06 02:08 PM
I have a problem with the $address identifier. I like to check the host from the user who start a PM or a DCC Chat. So I use this code for PM:

on *:OPEN:?:*:{
echo -s $address($query($nick),3)
}

and this for DCC Chat:

on *:OPEN:=:*:{
echo -s $address($chat($nick),3)
}

When I open a PM or a DCC Chat with my Bot I get this error: * /echo: insufficient parameters (line 2, test.mrc)

Now I don't know how I can read the host from the user, is it a bug or I have do something wrong?
Posted By: starbucks_mafia Re: $address problem - 04/10/06 02:52 PM
The $address() identifier uses mIRC's Internal Address List (IAL). Unfortunately the IAL only stores the addresses of people who you share a channel with, which is why it returns nothing for PMs and DCCs. Instead you need to use the $fulladdress identifier which is always present in events, and then $mask() to change it into *!*@*.host format.

eg.
Code:
on *:OPEN:?:*:{
echo -s $mask($fulladdress,3)
}
Posted By: Chamillionaire Re: $address problem - 04/10/06 03:11 PM
oh I don't know blush THX starbucks_mafia for the fast help laugh
Posted By: vexed Re: $address problem - 04/10/06 03:15 PM
I also like to use this

Code:
[ $+ $nick $+ $iif($ial($nick).addr != $null,$chr(32) $+ $v1,[mask not in ial]) $+ ] 
Posted By: Chamillionaire Re: $address problem - 04/10/06 03:53 PM
Hmm... $mask($fulladdress,3) doesn't work with DCC Chat. frown
What I have to do to get the host when I start DCC Chat ?
Posted By: DaveC Re: $address problem - 05/10/06 02:37 AM
Dcc chat is ip to ip you dont need a address u have there ip $chat(N/nick).ip
Posted By: Riamus2 Re: $address problem - 05/10/06 01:09 PM
And if you need the address for something, then you'll probably have to /dns the person and take the resulting host information.
Posted By: starbucks_mafia Re: $address problem - 05/10/06 01:59 PM
It seems strange/pointless not to make $fulladdress available in on open though since the information is provided in the DCC chat request.
Posted By: MikeChat Re: $address problem - 05/10/06 08:03 PM
I believe this should work when a request comes in

ctcp *:DCC:*:{ echo -s W: $wildsite F: $fulladdress }
© mIRC Discussion Forums