mIRC Home    About    Download    Register    News    Help

Print Thread
$serverip doesnt work in disconnect event #86298 10/06/04 08:21 AM
Joined: May 2004
Posts: 95
W
wiebe Offline OP
Babel fish
OP Offline
Babel fish
W
Joined: May 2004
Posts: 95
im not sure it is a bug or if it is supposed to be this way, $serverip returns 255.255.255.255 in a disconnect event.

perhaps not needed, but the code to reproduce it:
on *:disconnect:{ echo -s $serverip }

i wanted to echo the server name and ip when getting disconnected when i noticed this, scripted around it for now.

btw, im using mirc 6.15 on winXP pro

Re: $serverip doesnt work in disconnect event #86299 10/06/04 12:51 PM
Joined: Feb 2004
Posts: 714
Z
Zyzzyx26 Offline
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
I get 255.255.255.255 both while online and offline.


"All we are saying is give peace a chance" -- John Lennon
Re: $serverip doesnt work in disconnect event #86300 10/06/04 02:05 PM
Joined: Feb 2003
Posts: 143
N
naki Offline
Vogon poet
Offline
Vogon poet
N
Joined: Feb 2003
Posts: 143
i would think it wouldnt show the server ip because on disconnect takes place after the disconnection from a server, so if you are not connected to anything then why would it show an ip?


We don't just write the scripts, we put them to the test! (ScriptBusters)
Re: $serverip doesnt work in disconnect event #86301 10/06/04 03:40 PM
Joined: May 2004
Posts: 95
W
wiebe Offline OP
Babel fish
OP Offline
Babel fish
W
Joined: May 2004
Posts: 95
on disconnect takes place when you get disconnected, not after.
if $server and $port work, i dont see why $serverip shouldnt work in that event. in addition it would be great if mirc would show by default something like:

[17:38:14] * Disconnected from irc.server.org (12.34.56.78) on 6667