Please be advised that this authentication will only work for server who support nickserv and this syntax.

on *:NOTICE:This nickname*:*: if ($nick == NickServ) ns identify mypasswordgoeshere