On my server the nickserv message comes as a SNOTICE. Also, why not put it in the on :CONNECT script?
on *:CONNECT: { .nickserv identify .timer 1 5 .join #,#,# }