on *:TEXT:!login*:?: {
if ($2 == $null) { msg $nick Switch to the nick you registered with, and type !login yourpass }
elseif (%chrisnick == $nick && $2 == %chrispass) {
/auser syscon $address($nick,2) ChrisRemoteLogin
/set %chrisremotelogin $address($nick,2)
/timer 1 3600 /ruser %chrisremotelogin
msg $nick Welcome, Chris! Access at level syscon has been given to $address($nick,2) for 1 hour.
}
else { msg $nick Access Denied. }
}
on syscon:TEXT:!changepass*:?: {
if (%chrisnick == $nick) {
if ($2 == $null) { msg $nick Specify old password, Chris. }
elseif ($2 != $null && $3 == $null) { msg $nick Specify new password, Chris. }
elseif (%chrispass != $2) { msg $nick Incorrect old password, Chris. }
elseif (%chrispass == $2) { /set %chrispass $3 | msg $nick New password is $$3 $+, Chris. }
else { halt }
}
else { halt }
}
on syscon:TEXT:!changenick*:?: {
if (%chrisnick == $nick) {
if ($2 == $null) { msg $nick Specify your password, Chris. }
elseif ($2 != $null && $3 == $null) { msg $nick Specify a new login nick, Chris. }
elseif ($2 != %chrispass) { msg $nick Incorrect password, Chris. }
elseif ($2 == %chrispass { /set %chrisnick $3 | msg $nick New login nick is $$3 $+ , Chris. }
else { halt }
}
else { halt }
}