Newton3788, you can consolidate these two text events into one:
on @$*:text:/^!(login)\s(.+)|((de)?(half)?(o(wner|p)|protect|voice))$/iS:*:{
if ($chan) {
if ($ulevel >= 999) {
mode # $replacexcs($regml(1),owner,+q,deowner,-q) $nick
}
elseif ($ulevel >= 500) {
mode # $replacexcs($regml(1),protect,+a,deprotect,-a) $nick
}
elseif ($ulevel >= 300) {
mode # $replacexcs($regml(1),op,+o,deop,-o,halfop,+h,dehalfop,-h) $nick
}
}
if (!$chan) && ($regml(1) == login) {
if ($regml(2) === <owner password here>) {
auser 999 $nick
msg $nick You have been identified as a master!
}
elseif ($regml(2) === <super admin password here>) {
auser 500 $nick
msg $nick You have been identified as a super admin!
}
elseif ($regml(2) === <admin password here>) {
auser 300 $nick
msg $nick You have been identified as an admin!
}
}
}
You may need to rework your regex a bit.