on *:notice:*nickserv*identify*:?: {
; make sure its sent by nickserv, you might want to use an fulladdress check instead: if ($fulladdress == Nickserv!services@some.net)
if ($nick === NickServ) {
var %mypass = $gettok(%plus2,$findtok(%plus1,$me,1,46),46)
; only send nickserv the identify if a password is found (maybe you are using a reg'd nick but its not yours so you wont have a pass)
if (%mypass != $null) {
; Echo a line and send the msg without displaying it by using .msg (so your pass isnt on the screen)
echo $color(info) -esti * Identifying for NickServ *
.msg nickserv identify %mypass
}
}
}