Advertisement
Wikked

Mass Modes

May 31st, 2015
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.94 KB | None | 0 0
  1. alias mass {
  2.   if ($me isop $chan) {
  3.     if ($$1 isin +v) { set %prefix $+(+,$str(v,$modespl)) | goto start }
  4.     if ($$1 isin -v) { set %prefix $+(-,$str(v,$modespl)) | goto start }
  5.     if ($$1 isin +h) { set %prefix $+(+,$str(h,$modespl)) | goto start }
  6.     if ($$1 isin -h) { set %prefix $+(-,$str(h,$modespl)) | goto start }    
  7.     if ($$1 isin +op) { set %prefix $+(+,$str(o,$modespl)) | goto start }
  8.     if ($$1 isin -op) { set %prefix $+(-,$str(o,$modespl)) | goto start }
  9.     if ($$1 isin +a) { set %prefix $+(+,$str(a,$modespl)) | goto start }
  10.     if ($$1 isin -a) { set %prefix $+(-,$str(a,$modespl)) | goto start }
  11.     :start
  12.     set %massing $nick($chan,0)
  13.     while (%massing) {
  14.       if ($nick($chan,%massing) != $me) { set %mass1 %mass1 $nick($chan,%massing) }
  15.       if ($gettok(%mass1,0,32) = $modespl) { mode $chan %prefix %mass1 | unset %mass1 }
  16.       dec %massing
  17.     }
  18.     mode $chan %prefix %mass1 | unset %mass1
  19.   }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement