Code:
on 1:connect:{
  if ($server == <serverhere>) {
    msg NickServ IDENTIFY password
    join $channel
  }
}


Also for security reasons I recommend using /NS or /NickServ instead of a direct /PRIVMSG request.

Last edited by Y4kuzi; 28/01/16 02:53 PM.