From 50608f65ff7fd90c5241bab4b33bc589bc905e18 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Sun, 11 Jun 2017 00:26:57 +1000 Subject: [PATCH] Test sent_kick instead of kickcount for DEOPFLOOD kicking kickcount is for counting KICKs sent by the user to detect KICK floods. --- source/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/misc.c b/source/misc.c index 7626d22..92e746b 100644 --- a/source/misc.c +++ b/source/misc.c @@ -799,7 +799,7 @@ int t = 0; { if (get_cset_int_var(chan->csets, DEOP_ON_DEOPFLOOD_CSET) < get_cset_int_var(chan->csets, KICK_ON_DEOPFLOOD_CSET)) send_to_server("MODE %s -o %s", chan->channel, nick->nick); - else if (!nick->kickcount++) + else if (!nick->sent_kick++) send_to_server("KICK %s %s :\002De-op flood\002 (%d de-ops in %dsecs of %dsecs)", chan->channel, nick->nick, get_cset_int_var(chan->csets, KICK_ON_DEOPFLOOD_CSET), t, get_cset_int_var(chan->csets, DEOPFLOOD_TIME_CSET)); } break;