power script

By henrikthesexy on Jul 18, 2005

power script

***************************
'              Henrik                      '
***************************

alias power { 
  if ($me ison $active || $query($active)) {
    if ($chan(0) > 1) {
      var %power = 1, %power.op, %power.users
      while (%power <= $chan(0)) { 
        if ($me isop $chan(%power)) { set %power.op $calc(%power.op +1) | set %power.users $calc(%power.users + $nick($chan(%power),0)) }
        set %power.total.users $calc(%power.total.users + $nick($chan(%power),0))   
        inc %power
      }
      var %power.chans = %power.op $+ / $+ $chan(0)
      var %power.users = %power.users $+ / $+ %power.total.users users
      ;edit this line as you want
      msg $active [Power] I Have op in %power.chans Channels and power over %power.users 
    }
  }
}
menu channel {
  -
  -
  Power:power
}
menu query {
  -
  -
  Power:power
 }
}

Comments

Sign in to comment.
Xylem   -  May 03, 2006

Kinda useless, but whatever floats your boat

 Respond  
F*U*R*B*Y*   -  Jul 19, 2005

i agree

 Respond  
DarthReven   -  Jul 19, 2005

could be better

 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.