Mass kick more than one person

By sharpknife on Aug 13, 2007

This snippet is a mass kick snippet, but it doesn't kick everyone in the room, like others. This snippet kicks more than one person with the command !kick or !k nick1 nick2 nick3 .. and so on. Enjoy =)

on *:TEXT:!*:#: {
  if (($1 == kick) || ($1 == k)) && (($nick isop $chan) || ($nick ishop $chan)) { 
    var %x = $nick($chan,0)
    while (%x) {
      if ($istok($2-,$nick($chan,%x),32) == $true) {
        kick $chan $nick($chan,%x)
      }
      dec %x
    }
  }
}

Comments

Sign in to comment.
Lindrian   -  Aug 14, 2007

I think this code here would work ALOT better:

on @*:TEXT:!*:#: {
  if ($istok(!kick !k,$1,32)) && ($nick($chan,$nick,oh)) && ($2) {
    var %t = $numtok($2-,32)
    while (%t) {
      if ($gettok($2-,%t,32) != $me) && ($gettok($2-,%t,32) ison $chan) {
        kick $chan $v1
      }
      dec %t
    }
  }
}

^Untested.

 Respond  
Callison1   -  Aug 14, 2007

If the event is triggered by a line beginning with !, how can $1 == kick or k?

 Respond  
stargazer989   -  Aug 14, 2007

thanks for pointing the obvious
common knowledge: mass = allot; (IRC) kick[s] = gtfo the channel

 Respond  
Shadow Clash   -  Aug 13, 2007

Mass kicks are more than one persons.

 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.