mIRC Homepage
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.
Posted By: Anonymous Re: Remote Connection for different networks w/ 1 mIRC - 09/07/05 06:35 PM
use the "if" command

if ($server == irc.gamesurge.net) /msg nickserv blabla
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
if (*.gamesurge.net iswm $server) /msg nickserv blabla
when you connect use $network
//echo -a $network in a channel and it should show gamesurge
or whatever the Network name is
Thank you so much for your replies, I have them all working!! W000t !
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 }
}
© mIRC Discussion Forums