Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. on *:OP:#masstest: /mass %auto
  2.  
  3. alias mass {
  4. if ($me isop $chan) {
  5. if ($1 isin +vvoice) { set %prefix $+(+,$str(v,$modespl)) | goto start }
  6. if ($1 isin -vdevoice) { set %prefix $+(-,$str(v,$modespl)) }
  7. if ($1 isin +oop) { set %prefix $+(+,$str(o,$modespl)) | goto start }
  8. if ($1 isin -odeop) { set %prefix $+(-,$str(o,$modespl)) }
  9. :start
  10. set %massing $nick($chan,0)
  11. while (%massing) {
  12. if ($nick($chan,%massing) != $me) { set %mass1 %mass1 $nick($chan,%massing) }
  13. if ($gettok(%mass1,0,32) = $modespl) { mode $chan %prefix %mass1 | unset %mass1 }
  14. dec %massing
  15. }
  16. mode $chan %prefix %mass1 | unset %mass1
  17. }
  18. else { echo -a *** Error you're not an op on $chan *** }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement