All pastes #498994 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-20 20:26 UTC
rendered paste body
alias ausers {
  set %who.chan $1
  set %who.done no
  who $1
}

raw 352:*:{
  if ($2 == %who.chan) && (%who.done) {
    if (*H* iswmcs $7) inc %husers
    if (*G* iswmcs $7) inc %gusers
    if (*r* iswmcs $7) inc %rusers
    if (*B* iswmcs $7) inc %busers
    if ($regex($7,/\*/Si) inc %ausers
    if (*+* iswm $7) inc %vusers
    if (*%* iswm $7) inc %housers
    if (*@* iswm $7) inc %ousers
    if (*&* iswm $7) inc %pusers
  }
  inc %tusers
}

raw 315:*:{
  if (%who.chan isin $2-) && (%who.done) {
    msg $active Stats for %who.chan $+ : $c1(Total) $c2($iif(%tusers,%tusers,0)) $c1(Here) $c2($iif(%husers,%husers,0)) $c1(Away) $c2($iif(%gusers,%gusers,0)) $c1(Registered) $c2($iif(%rusers,%rusers,0)) $c1(Bots) $c2($iif(%busers,%busers,0)) $c1(Net Admins) $c2($iif(%ausers,%ausers,0)) $c1(Voiced) $c2($iif(%vusers,%vusers,0)) $c1(HalfOp) $c2($iif(%Housers,%housers,0)) $c1(Op) $c2($iif(%ousers,%ousers,0)) $c1(Protected Admins) $c2($iif(%pusers,%pusers,0))
    unset %*users
    unset %who.*
  }
}