All pastes #1765132 Raw Edit

_dead Mass add/rem user

public text v1 · immutable
#1765132 ·published 2010-01-25 13:32 UTC
rendered paste body
alias madduser {
  if ($active == $chan) {
    if (X ison $chan) {
      if ($numtok($1-,32) > 1) { 
        set %maddusx $numtok($1-,32) | set %maddusxlv $gettok($1-,%maddusx,32)
        :lma
        if (%maddusx > 1) { dec %maddusx | echo -a .msg x adduser # $gettok($1-,%maddusx,32) %maddusxlv | goto lma }
        else halt
      }
      else echo $color(info) -a $timestamp * /madduser: insufficient parameters
    }
    else echo $color(info) -a $timestamp * X is not in $chan $+ .
  }
  else echo $color(info) -a $timestamp * You are not in a channel.
}
alias mremuser {
  if ($active == $chan) {
    if (X ison $chan) {
      if ($numtok($1-,32) > 0) { 
        set %maddusx $numtok($1-,32) 
        :lma
        if (%maddusx > 0) { echo -a .msg x remuser # $gettok($1-,%maddusx,32) | dec %maddusx | goto lma }
        else halt
      }
      else echo $color(info) -a $timestamp * /madduser: insufficient parameters
    }
    else echo $color(info) -a $timestamp * X is not in $chan $+ .
  }
  else echo $color(info) -a $timestamp * You are not in a channel.
}