Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 14th, 2012  |  syntax: None  |  size: 0.69 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. alias mass {
  2.   if ($me isop $chan) {
  3.     if ($1 isin +vvoice) { set %prefix $+(+,$str(v,$modespl)) | goto start }
  4.     if ($1 isin -vdevoice) { set %prefix $+(-,$str(v,$modespl)) }
  5.     if ($1 isin +oop) { set %prefix $+(+,$str(o,$modespl)) | goto start }
  6.     if ($1 isin -odeop) { set %prefix $+(-,$str(o,$modespl)) }
  7.     :start
  8.     set %massing $nick($chan,0)
  9.     while (%massing) {
  10.       if ($nick($chan,%massing) != $me) { set %mass1 %mass1 $nick($chan,%massing) }
  11.       if ($gettok(%mass1,0,32) = $modespl) { mode $chan %prefix %mass1 | unset %mass1 }
  12.       dec %massing
  13.     }
  14.     mode $chan %prefix %mass1 | unset %mass1
  15.   }
  16.   else { echo -a *** Error you're not an op on $chan *** }
  17. }