Mass Kick

By vSkyzv on Dec 06, 2008

This script will kick everybody you can kick off a channel.

It works by doing a /names, saving the data, removing useless parts of information, and then turns it into a list of users to kick.

Syntax: /masskick

Alternatively, you can right click on the nick list, goto "Control", and then click on "Mass Kick".

menu nicklist {
  Control
  .Mass Kick { masskick $chan }
}
alias masskick {
  if ($1 != $null) { set -u5 %channel $1 | names $1 }
}
raw 353:*:{
  if ($3 == %channel) {
    set %masskick $remove($1-,^,~,&,@,%,+,$me = $3)
    set %loop $numtok(%masskick,32)
    while (%loop > 0) {
      if ($gettok(%masskick,%loop,32) != $me) { kick %channel $gettok(%masskick,%loop,32) Masskick! }
      dec %loop
    }
    unset %masskick %channel %loop
  }
}

Comments

Sign in to comment.
findfriend   -  Sep 03, 2009

nappa182: I likes your code. It's good job :-) for me.

 Respond  
napa182   -  Dec 07, 2008

why not just do

alias masskick { if ($nick(#,$me,oh)) { var %^ = $nick(#,0) | while (%^) { if ($nick(#,%^) != $me) kick # $v1 MassKick Enjoy! | dec %^ } } }
 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.