All pastes #449930 Raw Edit

Someone

public text v1 · immutable
·published 2007-04-20 14:52 UTC
rendered paste body
alias kickban { 
  mode %tChan +b $address($1,2)
  kick %tChan $1 $2-
}

on 500:text:!suspenduser*:#: {
  if ($level($address($2,2)) == 0) {
    msg %tChan 4,0 $2 1,0is already suspended
  }
  if ($level($address($2,2)) == 1) {
    auser 0 $address($2,2)
    msg %tChan 4,0 $2 1,0suspended user access
    ;kickban $2 Suspended User
    msg %tChan (execute kickban)
    halt
  }
  if ($level($address($2,2)) == 10) {
    auser 0 $address($2,2)
    msg %tChan 4,0 $2 1,0suspended user access
    halt
  }
  if ($level($address($2,2)) == 500) {
    msg %tChan 4,0 $2 1,0is a bot operator
  }
  if ($level($address($2,2)) == 1000) {
    msg %tChan 4,0 $2 1,0is a bot owner
  }
}

on 500:text:!unsuspenduser*:#: {
  if ($level($address($2,2)) == 0) {
    ruser 0 $address($2,2)
    msg %tChan 4,0 $2 1,0unsuspended user access
    mode %tChan -b $address($2,2)
    halt
  }
  else {
    msg %tChan 4,0 $2 1,0is not a suspended user
  }
}