All pastes #751529 Raw Edit

Stuff

public text v1 · immutable
#751529 ·published 2007-10-27 14:38 UTC
rendered paste body
/data {  
  var %x = $chan(0),%o 0,%h 0,%v 0,%r 0,%p 0,%t 0
  while (%x) {
    if (($me isop $chan(%x)) || ($me ishop $chan(%x))) {
      if ($me isop $chan(%x)) { inc %o }
      if ($me ishop $chan(%x)) { inc %h }
      inc %p $nick($chan(%x),0)
    }
    elseif ($me isvoice $chan(%x)) { inc %v }
    elseif ($me isreg $chan(%x)) { inc %r }
    inc %t $nirwerck($chan(%x),0)
    dec %x
  }
  say 14I am currently on 07 $+ $chan(0) 14 $+ $iif($chan(0) iswm 1,channel,channels) $+ . I am an op on 07 $+ %o $+ 14, halfop on 07 $+ %h $+ 14, voiced on 07 $+ %v $+ 14, and a regular user on 07 $+ %r $+ 14. I have power over 07 $+ $+(%p,14/,07,%t) $+ 14 (07 $+ $round($calc((%p / %t) * 100),0) $+ % $+ 14) users.
}