Power script

By juhapuha on May 11, 2008

This script is easy to use and there's tons of these on hawkee, but i still decided to put it here. :-)
Usage: /power

Will tell active channel your opped channels and how many users do you have under your control. ;)

alias power {
  var %i = $chan(0)
  while (%i) {
    %users = $calc(%users + $nick($chan(%i),0))
    if ($me isop $chan(%i)) { inc %oped | %own = $calc(%own + $nick($chan(%i),0)) }
    dec %i
  }
  if (c isincs $gettok($chan($active).mode,1,32)) { echo -a Can not use the script on $active $+ : The channel mode c present (No colours). }
  if (c !isincs $gettok($chan($active).mode,1,32)) {
  msg $active 7Power: I'm opped on ( $+ $+($iif(%oped,%oped,0),/,$chan(0)) $+ ) channels on 7 $+ $left($network,1) $+  $+ $right($network,-1) $+  in control of ( $+ $+($iif(%own,%own,0),/,%users) $+ ) users. }
  unset %own %oped %users
}
on *:load:{ echo -a Power script loaded. Usage: /power - Perfect script for ophunters and lamers. :) }

Comments

Sign in to comment.
juhapuha   -  May 11, 2008

:-)

 Respond  
Jonesy44   -  May 11, 2008

Well, no .. but if you\'re lazy, or want to be more efficient, just use else...

 Respond  
juhapuha   -  May 11, 2008

Does it matter? ;)

 Respond  
guest598594   -  May 11, 2008
  if (c isincs $gettok($chan($active).mode,1,32)) { echo -a Can not use the script on $active $+ : The channel mode c present (No colours). }
  if (c !isincs $gettok($chan($active).mode,1,32)) {

Just use \"else {\" for the second if ;)

 Respond  
juhapuha   -  May 11, 2008

Don\'t kill me please. :(

 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.