mIRC Home    About    Download    Register    News    Help

Print Thread
#205810 01/11/08 05:20 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I making a "resent" server menu, but i got a problem, if i connect to as an example quakenet, then i connect to se.quakenet.org, but
when i do //echo -a $server i got the answer:

port80b.se.quakenet.org

if i try connect to the server i got in the reply i get the error:

* Unable to resolve server

How can i replace the server with the right one, do i need to read from the server list, or is it any bether way to do this? if i read from the server list, then how can i make mirc understand i connect to a *.se server, or a *.us server or to a *.uk server. don't know how many other networks using the same way when you connect, but ideas on this one would be nice. smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
to make a "recent" server list use the servers your given at connect time. The hostname given by $server after you connect is returned by the server and its not guaranteed to be a valid/real hostname-- replacing it with the "right" one would be using "se.quakenet.org". There's no direct translation between the server you connect to with /server and the hostname the server responds with in $server.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Any way to solve this? or is it impossible?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Rather than worrying about the specific server, use the network name, especially if the network is already in mIRC's server list.

Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
network wont give me a server closest to me, so will not be a good idea to use..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard