mIRC Home    About    Download    Register    News    Help

Print Thread
#40058 06/08/03 12:17 PM
Joined: May 2003
Posts: 19
M
Pikka bird
OP Offline
Pikka bird
M
Joined: May 2003
Posts: 19
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.

#40059 06/08/03 02:47 PM
Joined: May 2003
Posts: 19
M
Pikka bird
OP Offline
Pikka bird
M
Joined: May 2003
Posts: 19
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.

#40060 06/08/03 03:14 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
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.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#40061 06/08/03 03:27 PM
Joined: May 2003
Posts: 19
M
Pikka bird
OP Offline
Pikka bird
M
Joined: May 2003
Posts: 19
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.

#40062 06/08/03 03:51 PM
Joined: Jul 2003
Posts: 35
R
Ameglian cow
Offline
Ameglian cow
R
Joined: Jul 2003
Posts: 35
Wouldn't /dns give you all the ips irc.<server>.org is routed to...?

#40063 06/08/03 04:12 PM
Joined: May 2003
Posts: 19
M
Pikka bird
OP Offline
Pikka bird
M
Joined: May 2003
Posts: 19
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?

#40064 06/08/03 04:25 PM
Joined: Jul 2003
Posts: 35
R
Ameglian cow
Offline
Ameglian cow
R
Joined: Jul 2003
Posts: 35
by dns'ing all the ips you could be routed to to get the reverse dns...
it could be done im sure

#40065 07/08/03 04:14 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
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.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#40066 07/08/03 01:22 PM
Joined: May 2003
Posts: 19
M
Pikka bird
OP Offline
Pikka bird
M
Joined: May 2003
Posts: 19
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.


Link Copied to Clipboard