mIRC Homepage
Posted By: Massacre Server address - 06/08/03 12:17 PM
Is there a way you can find out the server address that was put through /server? I'll give an example cause that's quite vague...

If someone types:
/server irc.<server>.org

they get connected then redirected to, eg:
uk.<server>.org

is there a way you can look up what was run past /server, in this case irc.<server>.org? I need it to for part of a script that is looking for multiple connections to one host.
Posted By: Massacre Re: Server address - 06/08/03 02:47 PM
I guess no one knows. I'm still interested if anyone does know but for the moment I'm using a variable to track $cid's of servers so I know what the original server address was.
Posted By: LocutusofBorg Re: Server address - 06/08/03 03:14 PM
Wow. You're sure none of the 21.597 registered members knows the answer to your question. And you waited a whole 2 and a half hours for it. And all that even though a whoopin 18 people looked at it. Wish I was psychic like that... Wow.
Posted By: Massacre Re: Server address - 06/08/03 03:27 PM
Lol. well it seems like a damn long time to me cause I've been sat the entire 2 and a half hours working on a solution :tongue: I think I have one but what i meant was, if anyone knows, post, cause other ppl might come across the same problem at some time. No offence meant to anyone.
Posted By: root Re: Server address - 06/08/03 03:51 PM
Wouldn't /dns give you all the ips irc.<server>.org is routed to...?
Posted By: Massacre Re: Server address - 06/08/03 04:12 PM
That would certainly give you all the possible servers you could be routed to and from but how could you tell which was the one that was used?
Posted By: root Re: Server address - 06/08/03 04:25 PM
by dns'ing all the ips you could be routed to to get the reverse dns...
it could be done im sure
Posted By: Hammer Re: Server address - 07/08/03 04:14 AM
You could alias your /server command to store the string ($1-) in a variable for use later on and then issue the server command itself with the provided parameters.
Posted By: Massacre Re: Server address - 07/08/03 01:22 PM
hammer, that's pretty much what i've done now without the aliasing bit, which i didn't think of so thnx. atm I've got something like:
set %var irc.<server>.net
server -m irc.<server>.net

but yeah, aliasing my own /server would be better :tongue:

also i could use the reverse dns but that seems quite long winded and for now i'll stick to aliasing. Thnx for ur suggetsions guys, maybe that's something the mIRC ppl could add.
© mIRC Discussion Forums