on *:notice:*:*:{
if ( $nick == Nickserv ) && ( *is*n*t*registered* iswm $1- ) {
if $network == PhaZeNet {
if $me != $gettok($1-,[color:red]2[/color],32) {
nick $v2
}
}
elseif $network == DALnet {
if $me != $gettok($1-,[color:red]3[/color],32) {
nick $v2
}
}
.msg ns register password email@myemail.com
}
}
alias ravich {
timer1 1 2 .msg ns info $1
}
here i have the red bits to get the nick out of the notice, you will need this adjusted for each network you operate the script in.
PhaZeNet's Nickserve returns:
Nick boingerino isn't registered.
so the red number is 2 (the second word)
DALnet returns:
The nickname boingerino is not registered.
so the red number is 3 (the third word)
your original code looks like it uses the dalnet version.
usage, /ravich nick-you-are-checking i.e /ravich boingerino
btk