mIRC Home    About    Download    Register    News    Help

Print Thread
#161185 04/10/06 02:08 PM
Joined: Oct 2006
Posts: 7
C
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Oct 2006
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?

#161186 04/10/06 02:52 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
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.
#161187 04/10/06 03:11 PM
Joined: Oct 2006
Posts: 7
C
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Oct 2006
Posts: 7
oh I don't know blush THX starbucks_mafia for the fast help laugh

#161188 04/10/06 03:15 PM
Joined: Feb 2006
Posts: 164
V
Vogon poet
Offline
Vogon poet
V
Joined: Feb 2006
Posts: 164
I also like to use this

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

#161189 04/10/06 03:53 PM
Joined: Oct 2006
Posts: 7
C
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Oct 2006
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 ?

#161190 05/10/06 02:37 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Dcc chat is ip to ip you dont need a address u have there ip $chat(N/nick).ip

#161191 05/10/06 01:09 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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
#161192 05/10/06 01:59 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
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.
#161193 05/10/06 08:03 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
I believe this should work when a request comes in

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


Link Copied to Clipboard