Jethro commented on a Page, Staff Bot v1 Preview  -  Jan 24, 2011

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.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.