Mass Kicking Normal User

By montague on Oct 28, 2009

It will only kick non-voiced user out from a chan with a timer. u can rip it as u like.

menu * { 
  Masskick -v {
    msg $chan Mass Kicking Normal User .. 
    mode $chan +i
    var %k = $nick(#,0,a,ov)
    while (%k) && ($me isop $chan) { 
      set %k.number $calc(%k.number + 1)
      kick $chan $nick(#,%k,a,ov) Masskick!!1 ┌∩â”(â—£_â—¢)┌∩â”
      dec %k
    }
    timer 1 15 /mode $chan -i
  }
}

Comments

Sign in to comment.
Jethro   -  Oct 28, 2009

Nice gooshie, but I was just basing my suggestion off of the original code...lol

 Respond  
gooshie   -  Oct 28, 2009
Masskick {
  if $nick(#,$me,~&@%) && $nick(#,0,r) {
    var %i 1 | mode # +i
    msg # Mass Kicking Normal User.. 
    while $nick(#,%i,r) {
      kick # $v1 Masskick | inc %i
    }
    timer 1 15 mode # -i
  }
}
 Respond  
Jethro   -  Oct 28, 2009

Your current code will kick yourself out. You want to make sure the message doesn't get sent every time when they are voiced. You can just use the r instead of a,ovh, and last but not least, you can use the local variable instead of the global:

menu * { 
  Masskick -v {
    $iif($nick(#,0,r),msg # Mass Kicking Normal User...)
    mode # +i
    var %k = $nick(#,0,r)
    while ($me isop #) && (%k) && ($v1 != $me) {
      var %k.number = $calc(%k.number + 1)
      kick # $nick(#,%k,r) Masskick!!1 ┌∩â”(â—£_â—¢)┌∩â”
      dec %k
    }
    .timer 1 15 mode # -i
  }
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.