Help with password feature - 01/09/03 10:40 AM
alias password {
if (%password == on) { goto login }
if (%password == off) { halt }
:login
.showmirc -t
/set %times 1
;/set %passwordtry1 = $?*="What is your password?"
/set %passwordtry1 = $input($read($mircdirscript/insquotes.txt),pv,©º°¨¨°º© WELCOME HENDON ©º°¨¨°º©)
if (%passwordtry1 == %yourpass) { goto success }
if (%passwordtry1 != $1) { goto login2 }
:login2
/set %times 2
;/set %passwordtry2 = $?*="What is your password?"
/set %passwordtry2 = $input(______ O_O ______,pow,©º°¨¨°º© INTRUDER ALERT ©º°¨¨°º©))
if (%passwordtry2 == %yourpass) { goto success }
if (%passwordtry2 != $1) { goto login3 }
:login3
/set %times 3
;/set %passwordtry3 = $?*="What is your password?"
/set %passwordtry3 = $input(______* ^ *______,poh,©º°¨¨°º© CODE RED ©º°¨¨°º©))
if (%passwordtry3 == %yourpass) { goto success }
if (%passwordtry3 != $1) { goto sorry }
:sorry
if (%times == 3) { /showmirc -s | /echo 4 FAILED LOGIN }
:success
.showmirc -s
/unset %passwordtry1
/unset %passwordtry2
/unset %passwordtry3
/unset %times
}
menu status,menubar {
Password System ( $+ %password $+ )
.On:/set %password on | /techo Password is now ON
.-
.Off:/set %password off | /techo Password is now OFF
.-
.Change Password:/newpass
}
alias techo {
if (%scriptstamp == 1) { echo -at %s $1- }
else { echo -a %s $1- }
}
alias newpass {
/set %newpasstry $?*="Old password:"
if (%newpasstry == %yourpass) { goto change }
if (%newpasstry != $1) { goto sorry }
:change
/set %yourpass $?*="New password:" | halt
/unset %newpasstry
:sorry
/techo Wrong password
/unset %newpasstry
}
=================
I can't get my password to be correct, I'm sure %yourpass is password under my variables list and it's the only %yourpass there.
if (%password == on) { goto login }
if (%password == off) { halt }
:login
.showmirc -t
/set %times 1
;/set %passwordtry1 = $?*="What is your password?"
/set %passwordtry1 = $input($read($mircdirscript/insquotes.txt),pv,©º°¨¨°º© WELCOME HENDON ©º°¨¨°º©)
if (%passwordtry1 == %yourpass) { goto success }
if (%passwordtry1 != $1) { goto login2 }
:login2
/set %times 2
;/set %passwordtry2 = $?*="What is your password?"
/set %passwordtry2 = $input(______ O_O ______,pow,©º°¨¨°º© INTRUDER ALERT ©º°¨¨°º©))
if (%passwordtry2 == %yourpass) { goto success }
if (%passwordtry2 != $1) { goto login3 }
:login3
/set %times 3
;/set %passwordtry3 = $?*="What is your password?"
/set %passwordtry3 = $input(______* ^ *______,poh,©º°¨¨°º© CODE RED ©º°¨¨°º©))
if (%passwordtry3 == %yourpass) { goto success }
if (%passwordtry3 != $1) { goto sorry }
:sorry
if (%times == 3) { /showmirc -s | /echo 4 FAILED LOGIN }
:success
.showmirc -s
/unset %passwordtry1
/unset %passwordtry2
/unset %passwordtry3
/unset %times
}
menu status,menubar {
Password System ( $+ %password $+ )
.On:/set %password on | /techo Password is now ON
.-
.Off:/set %password off | /techo Password is now OFF
.-
.Change Password:/newpass
}
alias techo {
if (%scriptstamp == 1) { echo -at %s $1- }
else { echo -a %s $1- }
}
alias newpass {
/set %newpasstry $?*="Old password:"
if (%newpasstry == %yourpass) { goto change }
if (%newpasstry != $1) { goto sorry }
:change
/set %yourpass $?*="New password:" | halt
/unset %newpasstry
:sorry
/techo Wrong password
/unset %newpasstry
}
=================
I can't get my password to be correct, I'm sure %yourpass is password under my variables list and it's the only %yourpass there.