mIRC Homepage
Posted By: Er1C Two script questions - 08/07/05 05:49 PM
Ok!

I've come far, but I need to tweak a few things and I need some help because it is not working.

1.

Code:
on *:start:{
  server irc.efnet.nl -i NICK1 NICK2 -j #channel1, channel2
  server -m irc.sh.cvut.cz -i NICK1 NICK2 -j #channel1, channel2
  server -m mozilla.se.eu.dal.net -i NICK1 NICK2 -j #channel1, channel2
}


This works smoothly. But the problem is, I also need to join channels with a key. How can I add them to this script?

Second problem.

2.

I need to identify on DALnet on connecting,

Code:
on *:CONNECT:if ($network == DALnet) { /msg nickserv@services.dal.net identify MYPASS }


This works, but I also need to identify to chanserv there. Adding a copy from the line above and changing the command doesn't work. mIRC only uses the first one. How can I make more identifications work?

thnx
Posted By: Collective Re: Two script questions - 08/07/05 06:12 PM
Question 1:
Code:
on *:START:{
  server irc.efnet.nl -i NICK1 NICK2 -j #channel1,channel2 key1,key2
  server -m irc.sh.cvut.cz -i NICK1 NICK2 -j #channel1,channel2 key1,key2
  server -m mozilla.se.eu.dal.net -i NICK1 NICK2 -j #channel1,channel2 key1,key2
}


Question 2:
Code:
on *:CONNECT:{
  if ($network == DALnet) {
    msg nickserv@services.dal.net identify MYPASS
    msg chanserv@services.dal.net identify MYPASS
  }
  if ($network == ANOTHERnet) {
    msg nickserv@services.another.net identify MYPASS
    msg chanserv@services.another.net identify MYPASS
  }
}
Posted By: Er1C Re: Two script questions - 08/07/05 06:15 PM
Hmmm, gonna give it a try cool
Posted By: Riamus2 Re: Two script questions - 08/07/05 06:15 PM
To join a channel with a key, just include the key

-j #channel key, #channel key, etc

on *:CONNECT:if ($network == DALnet) { /nickserv identify password | /chanserv identify password }
Posted By: Er1C Re: Two script questions - 08/07/05 06:39 PM
Well, the on connect thingy works perfectly.

But there is a problem with the automatic join script.


server -m mozilla.se.eu.dal.net -i NICK1 NICK2 -j #1, #2 PASS2, #3 PASS3

He joins the first (with no pass) and the 2nd (with pass) ut he won't join the 3rd. k required i get to see. so i changed channel order in het script, double checked... but again the 3rd won't join.

howcome
Posted By: Er1C Re: Two script questions - 08/07/05 06:52 PM
Seems he doesn't allow two channels with a key in one line? Even if I place a channel without a key as last one on the line... the second one with pass doesn't work. Doesn't matter which channels with key, the second doesn't work. he tries to join the channel but doesn't read the key


confused
Posted By: Collective Re: Two script questions - 09/07/05 07:05 AM
Try the syntax I told you, i.e. -j list,of,channels list,of,keys
© mIRC Discussion Forums