Mass Kick Protection

By jonypaul on Jul 07, 2006

This is a very easy snippet that will protect your channel from masskicks. It simply kicks anyone that kicks 4 people within 6 seconds and blocks the channel ( mode +i )
Obvioulsy only works if you have a higher level than the kicker.

On *:KICK:#: {
  /inc %nrofkicks 1
  timerkick 1 6 /unset %nrofkicks 
  if ( 4 isin %nrofkicks ) {
    /mode $chan +i
    /mode $chan +b $address
    /kick $chan $nick 0,1Excessive Kicks Detected. 
  }
}

Comments

Sign in to comment.
jugni   -  Apr 22, 2011

wrong code it kick ur self
try this
On *:KICK:#: {
/inc %nrofkicks 1
timerkick 1 6 /unset %nrofkicks
if ( 4 isin %nrofkicks ) {
/mode $chan +b $address
if ($nick != $me) { ./kick $chan $nick 0,1Excessive Kicks Detected. }
}

Hitman  -  Jan 25, 2014

On *:KICK:#: {
if ($nick != $me) {
.hinc -mu6 KICKS $+($nick,$chan)
if ($hget(KICKS, $nick $+ $chan) > 4) {
mode $chan +ib $address($nick,2) | kick $chan $nick $hget(KICKS, $nick $+ $chan) Kicks. Possible Excess Kicks.
}
}
}

Sign in to comment

dashh   -  Feb 21, 2009

;- if any nick kick 4 nicks in a room.

On *:KICK:#: {
inc -u4 %kick. [ $+ [ $chan ] ]
if (%kick. [ $+ [ $chan ] ] == 4) {
; here put what do u like.
; /mode $chan +i
; /mode $chan +b $address
; /kick $chan $nick 0,1Excessive Kicks Detected.
}
}

; if u want replace the chan id for nick id.
; when a nickuser kick 4 nick in a row. the other way inc any user.

 Respond  
Abtehi   -  Feb 20, 2009

I am confused. If I want to make this for a single channel or multiple channels.. I would say 2 channels, please give me correct codes for 2 channels. and the way it works, but I am looking for a Mass Ban Protection as well.

 Respond  
fluppy   -  Jul 08, 2006

You could also do
if (4 isin %nrofkicks) && ($me isop $chan) {
instead of
if ( 4 isin %nrofkicks ) {

 Respond  
fluppy   -  Jul 08, 2006

Instead of
/mode $chan +b $address
/kick $chan $nick 0,1Excessive Kicks Detected.

You could use
/ban -k $chan $nick 2 0,1Excessive Kicks Detected. .

And / at the start of the commands isn\'t needed either. mIRC automatically does the commands as though they have been there.

 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.