try

on 1:notice:*/msg*NickServ*IDENTIFY*password*:/msg nickserv identify (yourpassword)