actually, with nickserv going on netsplits and coming back asking you to identify, you might try this instead:
on *:notice:This nickname is owned by someone else.*:*: {
if ($nick != NickServ) { return }
.msg nickserv identify <password>
}
on *:notice:This nickname is registered and protected*:*: {
if ($nick != NickServ) { return }
.msg nickserv identify <password>
}
These two cover the two different nickservs I've encountered.