mIRC Home    About    Download    Register    News    Help

Print Thread
Two script questions #124581 08/07/05 05:49 PM
Joined: May 2005
Posts: 25
E
Er1C Offline OP
Ameglian cow
OP Offline
Ameglian cow
E
Joined: May 2005
Posts: 25
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

Re: Two script questions #124582 08/07/05 06:12 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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
  }
}

Re: Two script questions #124583 08/07/05 06:15 PM
Joined: May 2005
Posts: 25
E
Er1C Offline OP
Ameglian cow
OP Offline
Ameglian cow
E
Joined: May 2005
Posts: 25
Hmmm, gonna give it a try cool

Re: Two script questions #124584 08/07/05 06:15 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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 }


Invision Support
#Invision on irc.irchighway.net
Re: Two script questions #124585 08/07/05 06:39 PM
Joined: May 2005
Posts: 25
E
Er1C Offline OP
Ameglian cow
OP Offline
Ameglian cow
E
Joined: May 2005
Posts: 25
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

Re: Two script questions #124586 08/07/05 06:52 PM
Joined: May 2005
Posts: 25
E
Er1C Offline OP
Ameglian cow
OP Offline
Ameglian cow
E
Joined: May 2005
Posts: 25
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

Re: Two script questions #124587 09/07/05 07:05 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Try the syntax I told you, i.e. -j list,of,channels list,of,keys