Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1.  
  2. alias power {
  3. cco
  4. power2
  5. }
  6. alias cco {
  7. if ($me isop $1) || ($me ishop $1) || (o isincs $usermode) || ($pos($prefix,$left($nick($1,$me).pnick,1)) < $pos($prefix,@)) { return 1 }
  8. return 0
  9. }
  10. alias power2 {
  11. var %tc = 0,%tu = 0,%oc = 0,%po = 0,%i = $scid(0)
  12. while (%i) {
  13. scid $scon(%i)
  14. if ($status == connected) {
  15. var %c = $chan(0)
  16. while (%c) {
  17. inc %tc
  18. inc %tu $calc($nick($chan(%c),0) -1)
  19. if ($cco($chan(%c))) {
  20. inc %oc
  21. inc %po $calc($nick($chan(%c),0) -1)
  22. }
  23. dec %c
  24. }
  25. }
  26. dec %i
  27. }
  28. scid -r
  29. msg $active I have ops in %oc $+ / $+ %tc channels on $iif($scid(0) == 1,1 network,$scid(0) networks) $+ . I have the power over %po $+ / $+ %tu users. }
  30. else { return %po }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement