i'm currently making a bot login system for a friend and i got this far but it doesn't work

Quote:

on *:TEXT:!login*:?:{
if ($2 == temp) ($nick == Paul) {
/notice $nick Password Accepted smile
/notice $nick Welcome back Owner
}
if ($2 == temp) ($nick == Shane) {
/notice $nick Password Accepted smile
/notice $nick Welcome back Admin
if ($1 == temp) ( $nick == Joey ) {
/notice $nick Password Accepted smile
/notice $nick Welcome back Operator
}
/notice $nick Bad Password/Nickname
}
}

but for some reason it won't work it will msg Shane Paul and Joey


and thats the way the scout leader burns