mIRC Home    About    Download    Register    News    Help

Topic Options
#161185 - 04/10/06 03:08 PM $address problem
Chamillionaire Offline
Nutrimatic drinks dispenser

Registered: 04/10/06
Posts: 7
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?

Top
#161186 - 04/10/06 03:52 PM Re: $address problem
starbucks_mafia Offline
Hoopy frood

Registered: 09/12/02
Posts: 2962
Loc: Norwich, UK
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)
}
_________________________
Spelling mistakes, grammatical errors, and stupid comments are intentional.

Top
#161187 - 04/10/06 04:11 PM Re: $address problem
Chamillionaire Offline
Nutrimatic drinks dispenser

Registered: 04/10/06
Posts: 7
oh I don't know blush THX starbucks_mafia for the fast help laugh

Top
#161188 - 04/10/06 04:15 PM Re: $address problem
vexed Offline
Vogon poet

Registered: 07/02/06
Posts: 164
I also like to use this

Code:
[ $+ $nick $+ $iif($ial($nick).addr != $null,$chr(32) $+ $v1,[mask not in ial]) $+ ] 

Top
#161189 - 04/10/06 04:53 PM Re: $address problem
Chamillionaire Offline
Nutrimatic drinks dispenser

Registered: 04/10/06
Posts: 7
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 ?

Top
#161190 - 05/10/06 03:37 AM Re: $address problem
DaveC Offline
Planetary brain

Registered: 26/09/03
Posts: 4230
Dcc chat is ip to ip you dont need a address u have there ip $chat(N/nick).ip

Top
#161191 - 05/10/06 02:09 PM Re: $address problem
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
And if you need the address for something, then you'll probably have to /dns the person and take the resulting host information.
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#161192 - 05/10/06 02:59 PM Re: $address problem
starbucks_mafia Offline
Hoopy frood

Registered: 09/12/02
Posts: 2962
Loc: Norwich, UK
It seems strange/pointless not to make $fulladdress available in on open though since the information is provided in the DCC chat request.
_________________________
Spelling mistakes, grammatical errors, and stupid comments are intentional.

Top
#161193 - 05/10/06 09:03 PM Re: $address problem
MikeChat Offline
Hoopy frood

Registered: 12/12/02
Posts: 1245
Loc: California, doooood
I believe this should work when a request comes in

ctcp *:DCC:*:{ echo -s W: $wildsite F: $fulladdress }

Top