Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. alias power {
  2. var %tc = 0,%tu = 0,%oc = 0,%po = 0,%i = $scid(0),%hc = 0,%vc = 0,%else = 0
  3. while (%i) {
  4. scid $scon(%i)
  5. if ($status == connected) {
  6. var %c = $chan(0)
  7. while (%c) {
  8. inc %tc
  9. inc %tu $calc($nick($chan(%c),0) -1)
  10. if ($me isop $chan(%c)) {
  11. inc %oc
  12. inc %po $calc($nick($chan(%c),0) -1)
  13. }
  14. elseif ($me ishop $chan(%c)) {
  15. inc %hc
  16. ;inc %po $calc($nick($chan(%c),0) -1)
  17. }
  18. elseif ($me isvoice $chan(%c)) {
  19. inc %vc
  20. ;inc %po $calc($nick($chan(%c),0) -1)
  21. }
  22. else {
  23. inc %else
  24. ;inc %po $calc($nick($chan(%c),0) -1)
  25. }
  26. dec %c
  27. }
  28. }
  29. dec %i
  30. }
  31. scid -r
  32. if (!$isid) {
  33. if ($1 == -e) { echo -a $gtd(Stats) you're opped in $sd($+(%oc,/,%tc)) channels on $sd($scid(0)) $iif($scid(0) == 1,network.,networks.) You have the power over $sd($+(%po,/,%tu)) users. }
  34. else { say [2Power] Operator: $+(12[,%oc,/,%tc,12]) Halfop $+(12[,%hc,/,%tc,12]) Voice: $+(12[,%vc,/,%tc,12]) Networks: $+(12[,$scid(0),12]) Power: $+(12[,%po,/,%tu,12])$+ users. }
  35. }
  36. else { return %po }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement