mIRC Homepage
Posted By: Revv my auto connect - 24/11/06 03:46 PM
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:
Posted By: Jigsy Re: my auto connect - 24/11/06 03:48 PM
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,...
Posted By: Revv Re: my auto connect - 24/11/06 03:59 PM
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.
Posted By: billythekid Re: my auto connect - 24/11/06 04:06 PM
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
Posted By: Revv Re: my auto connect - 24/11/06 04:45 PM
sorry to ask but how i cant seem to get it right confused
Posted By: Jigsy Re: my auto connect - 24/11/06 05:00 PM
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.
Posted By: Revv Re: my auto connect - 24/11/06 05:22 PM
that code can be used on multiple servers?
Posted By: Jigsy Re: my auto connect - 24/11/06 05:58 PM
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.
© mIRC Discussion Forums