Power Snippet

By Kancer on Sep 25, 2003

just type /power [-e] in the channel to see who you have power over, it also shows how many networks you are on and the percentage you have ops in of all channels.This has been in my addons/snippets folder for a long time and i couldnt find the owner to this snippet, so if anyone knows who it is i give them proper credit.

;; Power Snippet By ???
;; /power [-e] will show your power
alias power {
  var %y,%c,%z,%x = 0,%chn,%o,%cid = $activecid
  while %x < $scon(0) { 
    inc %x 
    %c = 0 
    scon %x 
    inc %chn $chan(0) 
    while %c < $chan(0) {
      inc %c 
      if $me isop $chan(%c) {
        inc %o 
        inc %y $nick($chan(%c),0) 
      } 
      inc %z $nick($chan(%c),0) 
    }
  }
  %x = 0 
  while %x < $scon(0) { inc %x | .scon %x | if $window(status window).cid == %cid { %cid = %x } }
  scon %cid 
  if $1 == -e || $active == status window || $left($active,1) == @ { 
    echo $color(info) -a You have op in %o $+ / $+ %chn Channels and so the Power over %y $+ / $+ %z users on $scon(0) Network $+ $iif($scon(0) != 1,s) ( $+ $percent(%y,%z) $+ )
  }
  else { msg $active I have op in %o $+ / $+ %chn Channels and so the Power over %y $+ / $+ %z users on $scon(0) Network $+ $iif($scon(0) != 1,s) ( $+ $percent(%y,%z) $+ ) }
}
alias percent { if $1 && $2 { return $round($calc($1 * 100 / $2),$iif($3,$3,1)) $+ % } }

Comments

Sign in to comment.
bigben again   -  Apr 04, 2004
 Respond  
bigben again   -  Apr 04, 2004
 Respond  
VVhispers   -  Jan 09, 2004

It says I\'m Opped in 2 channels when in fact I am at normal status in both channels...

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.