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.
}
}
;- 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.
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.
}
}
}