mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2011
Posts: 2
R
rzf Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
R
Joined: Feb 2011
Posts: 2
The following code is a multi-network connect script that waits for confirmation from the nickserv/authserv/Q/whatever before it attempts to join the specified channels.

So far it works great, except for the fact that it will only join the first channel for each network (ie #channel1). What am I doing wrong? Help would really be appreciated! smile

Code:
alias setconnectinfo {
  set %login.quakenet msg q@cserve.quakenet.org AUTH NICK PASSWORD
  set %channels.quakenet #channel1, #channel 2, #channel 3
  set %login.synirc ns identify PASSWORD
  set %channels.synirc #channel1, #channel 2, #channel 3
}

ON 1:START:{
  setconnectinfo
  server irc.quakenet.org 6667 -i NICK
  server -m irc.synirc.net 6660 -i NICK
}

on *:connect: {
  if ($($+(%,login.,$network),2) != None) { $v1 }
  else { join $($+(%,channels.,$network),2) }
}

on *:notice:*:?: {
  if (($nick == NickServ || $nick == Q) && you are now isin $1-) {
    join $($+(%,channels.,$network),2)
  }
}

Joined: Jun 2003
Posts: 994
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
#channel1,#channel2,#channel3 (no spaces) might cure it


I refuse to engage in a battle of wits with an unarmed person. wink
Joined: Feb 2011
Posts: 2
R
rzf Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
R
Joined: Feb 2011
Posts: 2
it works! Thanks alot! smile


Link Copied to Clipboard