Advertisement
Guest User

Untitled

a guest
May 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Per 0.71 KB | None | 0 0
  1. alias mass {
  2.   if ($me isop $chan) {
  3.     var %prefix = $left($1,1), %mode = $right($1,1), %counter = 1, %nicks
  4.     while ($nick(#,%counter)) {
  5.       if ($nick(#,%counter) != $me) %nicks = %nicks $ifmatch
  6.       if ($numtok(%nicks,32) == $modespl) {
  7.         mode $chan %prefix $+ $str(%mode,$numtok(%nicks,32)) %nicks
  8.         %nicks = ""  
  9.       }
  10.       inc %counter
  11.     }
  12.     if (%nicks) mode $chan %prefix $+ $str(%mode,$numtok(%nicks,32)) %nicks
  13.   }
  14. }
  15.  
  16. alias masskick {
  17.   unset %total
  18.   set %count.nick 0
  19.   set %total $nick(#,0)
  20.   :start
  21.   inc %count.nick
  22.   if (%count.nick > %total) { halt }
  23.   if ($nick(#,%count.nick) == $me) { goto start }
  24.   else { kick # $nick(#,%count.nick) | goto start }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement