mIRC Home    About    Download    Register    News    Help

Print Thread
#20299 21/04/03 10:54 AM
Joined: Mar 2003
Posts: 58
A
Adler Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Mar 2003
Posts: 58
if i use on logon $server and the server is only a round robin or forwarding server it returns the name of this and not the really servername to be connected.

#20300 22/04/03 04:59 AM
Joined: Dec 2002
Posts: 349
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 349
on logon occurs before the server sends any information identifying itself (although some servers do send the "Looking up your host" "Checking identd" etc. notices before the client sends a USER or NICK command, but often these do not contain a prefix to identify the server, and mIRC does not 'use' these notices to identify the server anyway AFAIK), so mIRC uses the server name you used with the /server command until the server sends numeric 001 (or any other numeric?) identifying itself.

$serverip will help you identify the individual server (just remember the ip address is backwards, eg: 10.11.12.13 is really ip 13.12.11.10) during the on logon event, but this will be kind of useless if your using a bnc or redirect.

#20301 22/04/03 12:00 PM
Joined: Mar 2003
Posts: 58
A
Adler Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Mar 2003
Posts: 58
ok thanks


Link Copied to Clipboard