menu status {
NickServ
.$iif($nspass.iden, UnSet, Set) NickServ Pass For $me: if ($nspass.iden) { /nspass.rem } | else { /nspass.add $$?="Enter Password:" }
}
alias nspass.add {
if (%ns. [ $+ [ $gettok($server, 2, 44) ] $+ ] . [ $+ [ $me ] ] == $null) {
/set %ns. [ $+ [ $gettok($server, 2, 44) ] $+ ] . [ $+ [ $me ] ] $$1
/echo $color(info) -ati2 Password Set For $me
}
}
alias nspass.rem {
if (%ns. [ $+ [ $gettok($server, 2, 44) ] $+ ] . [ $+ [ $me ] ] != $null) {
/unset %ns. [ $+ [ $gettok($server, 2, 44) ] $+ ] . [ $+ [ $me ] ]
/echo $color(info) -ati2 Password Removed For $me
}
}
alias nspass.iden {
if (%ns. [ $+ [ $gettok($server, 2, 44) ] $+ ] . [ $+ [ $me ] ] != $null) return $true
return $false
}
on 1:CONNECT: {
if (%ns. [ $+ [ $gettok($server, 2, 44) ] $+ ] . [ $+ [ $me ] ] != $null) {
/nickserv identify %ns. [ $+ [ $gettok($server, 2, 44) ] $+ ] . [ $+ [ $me ] ]
/echo $color(info) -ati2 You are now identified.
}
}