mIRC Home    About    Download    Register    News    Help

Print Thread
Remote Connection for different networks w/ 1 mIRC #124632 09/07/05 05:28 PM
Joined: Jul 2005
Posts: 3
W
wdd Offline OP
Self-satisified door
OP Offline
Self-satisified door
W
Joined: Jul 2005
Posts: 3
I'm trying to setup different mIRC remote connection sripts, so I can make one file for each network that connects to different channels.

I found some info on the net where I have it setup to:


on *:START: {
server irc.gamesurge.net -i nick nick1 me@privacy.net me -j #test1,#test2
}


That will connect me to the server and join the test channels, but that network I can also /msg nickserve and identify myself. The problem is, I don't know how to include that /msg into the remote script so I can be identified before joining a channel.

My next solution was to create another section that says:

on 1:connect:{
/msg nickserv identify me
/join #test1
/join #test2
}

but when I load 2 remote connections into 1 mIRC window, it will perform those joins in both networks...


Any Ideas on how to load multiple remote connection scripts to
1. /msg nickserve different passwords pending server you connect to
2. make it so those join commands will not join #test1 and #Test2 on both networks? (I want to join specific channels based upon which network I connect to...)


thanks.

Re: Remote Connection for different networks w/ 1 mIRC #124633 09/07/05 06:35 PM
A
Anonymous
Unregistered
Anonymous
Unregistered
A
use the "if" command

if ($server == irc.gamesurge.net) /msg nickserv blabla

Re: Remote Connection for different networks w/ 1 #124634 09/07/05 09:20 PM
Joined: Jul 2005
Posts: 3
W
wdd Offline OP
Self-satisified door
OP Offline
Self-satisified door
W
Joined: Jul 2005
Posts: 3
One issue I'm having.. when I connect to irc.gamesurge.com, it routes me to a sub server on the network. I tried to do something like:

if ($server == *.gamesurge.net) /msg nickserv blabla

but it seems that it didn't like the * as a wildcard. Any Ideas on how I would get that to work?

thanks

Re: Remote Connection for different networks w/ 1 #124635 09/07/05 09:33 PM
Joined: Jul 2004
Posts: 21
X
xhine Offline
Ameglian cow
Offline
Ameglian cow
X
Joined: Jul 2004
Posts: 21
if (*.gamesurge.net iswm $server) /msg nickserv blabla

Re: Remote Connection for different networks w/ 1 #124636 09/07/05 09:56 PM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
when you connect use $network
//echo -a $network in a channel and it should show gamesurge
or whatever the Network name is

Re: Remote Connection for different networks w/ 1 #124637 10/07/05 10:25 AM
Joined: Jul 2005
Posts: 3
W
wdd Offline OP
Self-satisified door
OP Offline
Self-satisified door
W
Joined: Jul 2005
Posts: 3
Thank you so much for your replies, I have them all working!! W000t !

Re: Remote Connection for different networks w/ 1 #124638 14/07/05 12:01 AM
Joined: Feb 2005
Posts: 15
X
xMIRCd Offline
Pikka bird
Offline
Pikka bird
X
Joined: Feb 2005
Posts: 15
ROFL, have something very similar :P

on *:CONNECT:{
if ($network == Winbots) {
ns identify ...
oper seperoth ...
j winbots
j Metroid
}
elseif ($network == Undernet) {
msg X@channels.undernet.org login SyntharuX ...
mode $me +x
join #phase
}
elseif ($network == HazeNET) {
msg Nickserv login Inaki ....
oper Inaki ...
join #hazenet
mode $me +x
msg H op
}
elseif ($network == HellsWinter) {
join #ircq
msg nickserv identify ...
msg hostserv on
}
else { halt }
}