If you have all the channels you want to join in a variable, like this:

%AutoJoin.DalNet #Aubs #The_Game #Beginner

then do this:

Code:
on *:CONNECT:{
  msg nickserv identify <password_for_$me>
  var %i = 1
  while %i <= $numtok($+(%AutoJoin.,$network),32) {
    join $gettok($+(%AutoJoin.,$network),%i,32)
    inc %i
  }
}


or a simpler way would to *hard code* it:

Code:
on *:CONNECT:{
  msg nickserv identify <password_for_$me>
  join #Aubs
  join #The_Game
  join #Beginner
}



Aubs.
cool