mIRC Home    About    Download    Register    News    Help

Print Thread
#165270 24/11/06 03:46 PM
Joined: Nov 2006
Posts: 4
R
Revv Offline OP
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Nov 2006
Posts: 4
Oke i want to make a script that wil automaticly identifie me when i connect to a server (rizon), and only afther i have been identified i want to join some channels automaticly. this is what i got so far

Code:
ON *:START: { 
  server irc.rizon.net
}

on *:connect:{
  if ($network == rizon) { /nickserv identify pass }
  if ($network == rizon) { /join #channel1}


}  


as you can see i am a noob at this so please keep it simple for me :tongue:

#165271 24/11/06 03:48 PM
Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Code:
on *:start:{
  server irc.rizon.net
}
on *:connect:{
  if ($network == rizon) {
    nickserv identify pass
    join #channel1,#channel2,#channel3
  }
}


You can join multiple channels using a comma.

If the channel has a key you'll need to add it after the #channel names.

e.g. #channel1,#channel2,#channel3 key

The same principle would apply for keys also: key1,key2,key3,...

Last edited by Jigsy; 24/11/06 03:51 PM.
#165272 24/11/06 03:59 PM
Joined: Nov 2006
Posts: 4
R
Revv Offline OP
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Nov 2006
Posts: 4
The problem i have is that i want to join a channel withs is set up so that you can only join if you have identified your nick. right now he joins that channel and afther that he identifies me, so i dont join that channel.

#165273 24/11/06 04:06 PM
Joined: Mar 2003
Posts: 612
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
you could set a timer to join the channel, say 2 seconds after identifying or you could listen for the "you are now recognised" confirmation notice and join the channels when that is received.

/help on notice

btk


billythekid
#165274 24/11/06 04:45 PM
Joined: Nov 2006
Posts: 4
R
Revv Offline OP
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Nov 2006
Posts: 4
sorry to ask but how i cant seem to get it right confused

#165275 24/11/06 05:00 PM
Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Code:
on *:start:{ server irc.rizon.net }
on *:connect:{
  if ($network == Rizon) { join #channel1,#channel2,#channel3 }
}
raw 005:*:{
  if ($network == Rizon) { nickserv identify pass }
}


You could always try something like that.


What do you do at the end of the world? Are you busy? Will you save us?
#165276 24/11/06 05:22 PM
Joined: Nov 2006
Posts: 4
R
Revv Offline OP
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Nov 2006
Posts: 4
that code can be used on multiple servers?

#165277 24/11/06 05:58 PM
Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Code:
on *:start:{
  server irc.rizon.net
  server -m server.name.xx
}
on *:connect:{
  if ($network == Rizon) { join #channel1,#channel2,#channel3 }
  if ($network == Network2) { join #chan1,#chan2 }
}
raw 005:*:{
  if ($network == Rizon) { nickserv identify pass }
  if ($network == Network2) { nickserv identify pass }
}


So yes.


What do you do at the end of the world? Are you busy? Will you save us?

Link Copied to Clipboard