All pastes #121331 Raw Edit

Stuff

public text v1 · immutable
·published 2006-08-07 22:05 UTC
rendered paste body
    if ($2 == add) {
      if (!$3) {
        msg $chan %t.t Invalid Syntax.  No User To Be Added.  Example: $readini(hubmain.ini,hub,privtrig) $+ staff add <nick> <lvl> %t.b | halt
      }
      if (!$4) {
        msg $chan %t.t Invalid Syntax.  No Level To Be Added.  Example: $readini(hubmain.ini,hub,privtrig) $+ staff add <nick> <lvl> %t.b | halt
      }
      if ($3 == $nick) {
        msg $chan %t.t You Cant Add Yourself %t.b | halt
      }
      if ($3 !ison $readini(hubmain.ini,hub,mainchan)) { 
        msg $chan %t.t That User Is Not In The Current Channel %t.b | halt
      }
      if ($3 ison $readini(hubmain.ini,hub,mainchan)) {
        if $regex($4,/^(?:500?|[1-4][50]0)$/) {
          who $chan
          set %temp.staff.nick $3
          set %temp.staff.add $address($3,2)
          set %temp.staff.level $4
          msg $chan %t.t Added7 %temp.staff.nick 0(10 $+ %temp.staff.add $+ 0) To The Users List With7 %temp.staff.level 0As A10 $readini(hublvl.ini,lvl,%temp.staff.level) %t.b
          writeini -n hubstaff.ini staff list $readini(hubstaff.ini,staff,list) %temp.staff.add
          writeini -n hubstaff.ini %temp.staff.add lvl %temp.staff.level
          writeini -n hubstaff.ini %temp.staff.add add %temp.staff.add
          auser %temp.staff.level %temp.staff.add
          unset %temp.staff.*
        }
        else {
          msg $chan %t.t Not A Right Access Level. %t.b
          timer 1 1 msg $chan %t.t Here Are The Access Levels: 50, 100, 150, 200, 250, 300, 350, 400, 450 and 500 %t.b | halt
        }
      }
    }