mIRC Home    About    Download    Register    News    Help

Print Thread
#88592 29/06/04 06:05 PM
Joined: Jun 2004
Posts: 2
T
Bowl of petunias
OP Offline
Bowl of petunias
T
Joined: Jun 2004
Posts: 2
hi all ;>

i have a little problem.. when i set up a listener in mirc and someone connects to the bind-port .. i get with $sock($sockname).ip the ip, where the script runs and not the ip from the guy who connects.. is that an error (in my script | mirc) or should i read the /help again ? :]

Thx --THe_C0bra

Joined: Mar 2004
Posts: 130
T
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
$sock($sockname).ip returns the ip from the one is connect

but you must first accept the connection else it returns nothing

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
On *:socklisten:serv:{
  • sockaccept user
    echo -s * $sock(user).ip
    sockclose user
}

Joined: Jun 2004
Posts: 2
T
Bowl of petunias
OP Offline
Bowl of petunias
T
Joined: Jun 2004
Posts: 2
thanks for your fast help.. now it works smile


Link Copied to Clipboard