mIRC Homepage
Posted By: Niss3 Connecting to two server at once at startup - 26/01/08 10:45 PM
Hi!

I'm active at both quakenet and utonet. The problem is
that's it's very much work with connection manually to
the secound server eatch time. And there after change
nick, auth etc.

Can someone help me set up my mIRC so I can make this
automatically? I wish to just press connect and get two
server connection with two different nicks joining different
channels on eatch server.

It shouldn't be impossible right?
on *:start:/server server1 | /server -m server2.
Posted By: 5618 Re: Connecting to two server at once at startup - 27/01/08 07:22 AM
Code:
on *:START:{
  server irc.quakenet.net -i nick anick email realname
  server -m irc.utonet.org -i nick anick email realname
}
on *:CONNECT:{
  if ($network == QuakeNet) {
    join #chan1
    join #chan2
  }
  elseif ($network == UtoNet) {
    join #chan3
    join #chan4
  }
}

This could work. Make sure you check what $network should match. Just go to a window opened on one of the networks and type //echo -a $network and you'll see what you should match it to.
Thanks. This looks like it could work.
I'm just so newbie at this so I'm not
sure where I'm supposed to put this
code. Somewhere under remote scripts?

When I wrote //echo -a $network in quakenet
i got: QuakeNet
And in Utonet: UtoNet

So the code you wrote is all correct?
Then the only problem left is where to
put the code.
Posted By: 5618 Re: Connecting to two server at once at startup - 27/01/08 10:40 AM
Yes, you put it in Remote (Alt+R). If there are already scripts present there, be careful where to put it. If so, it's probably easiest to create a new script file using File > New.
Okay. Thanks. All working great and exacly as I wished for.
© mIRC Discussion Forums