rendered paste bodyon @*:kick:#: {
if ($hget(protect,masskick) != off) && ($iif($nick == ChanServ,$gettok($remove($gettok($1-,1,40),$chr(41)),1,32),$nick) != $me) {
var %k.limit = $hget(protect,masskick)
var %k.time = 60
hinc $+(,-,mu,%k.time,) $chan kicks
var %k.lim = $hget($chan,kicks)
if (%k.lim == %k.limit) {
chanserv $chan suspend $iif($nick == ChanServ,$gettok($remove($gettok($1-,1,40),$chr(41)),1,32),$nick)
chanserv $chan kick $iif($nick == ChanServ,$gettok($remove($gettok($1-,1,40),$chr(41)),1,32),$nick) Go diaf mass kick!
msg $chan $s(WARNING,Channel may be undergoing a channel takeover notifying opers. (Too Many Kicks))
msg $staff $s(MassKick Attack,Possible masskick in $chan Reason: $+(,$hget(protect,masskick),+,) Kicks within 60 seconds)
}
}
}
on @*:ban:#: {
if ($hget(protect,massban) != off) && ($nick != $me) {
var %b.limit = $hget(protect,massban)
hinc $+(,-,mu,60,) $chan bans
var %b.lim = $hget($chan,bans)
if (%b.lim == %b.limit) {
chanserv $chan suspend $nick
chanserv $chan kick $nick Go diaf massban!
msg $chan $s(WARNING,Channel may be undergoing a channel takeover notifying opers. (Too Many Bans))
msg $staff $s(MassBan Attack,Possible massban in $chan Reason: $+(,$hget(protect,massban),+,) Bans within 60 seconds)
}
}
}
on @^*:quit: {
if ($hget(protect,massjoin) != off) {
if ($1- == *.net *.split) {
hinc -m $chan netsplit
}
}
}
on @^*!:join:#: {
if ($hget(protect,massjoin) != off) && ($nick != $me) {
if ($calc($hget($chan,netsplit) - 1) == 0) {
msg $staff $s(MassJoin Netsplit,The netsplit is now over)
hdel $chan netsplit
}
if ($hget($chan,netsplit) != $null) {
hdec -s $chan netsplit
}
if ($hget($chan,netsplit) == $null) {
hinc -mu5 $chan $+(,f.,$wildsite,)
if ($hget($chan,$+(,f.,$wildsite,)) == $hget(protect,massjoin)) {
mode $chan +mirC
timer 1 90 mode $chan -mir
msg $chan $s(Possible Massjoin,Bot operators and IRC operators have been notified.)
msg $staff $s(Massjoin Attack,Possible channel attack in $chan $+ . Current User limit $nick($chan,0) $+(,,$chr(40),,$hget(protect,massjoin) User Flood,,$chr(41),,))
}
}
}
}