From df5fd4e537793df6f7fcd39e1e7e9d1ae409bb2a Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Mon, 25 May 2020 16:55:44 +0200 Subject: [PATCH] Adjust default set::anti-flood::target-flood rates to: set { anti-flood { target-flood { channel-privmsg 45:5; channel-notice 15:5; channel-tagmsg 15:5; private-privmsg 30:5; private-notice 10:5; private-tagmsg 10:5; }; }; }; Max 45 messages in 5 seconds means max 540 messages per minute, with a peak of (surprise) 45 messages per 5 seconds... That should be sufficient for every legit channel, right? How can you chat if you get more than 9msgs/sec for 5 seconds straight? Maybe I am even too liberal with these limits? NOTICE and TAGMSG get lower limits because they are far less used and have other concerns (eg: ringing a bell for NOTICE). The default limits may be changed in later versions of UnrealIRCd based on feedback and more insight in (big) channel rates. --- src/modules/targetfloodprot.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/modules/targetfloodprot.c b/src/modules/targetfloodprot.c index b45ec9417..3094013d5 100644 --- a/src/modules/targetfloodprot.c +++ b/src/modules/targetfloodprot.c @@ -57,24 +57,24 @@ void targetfloodprot_defaults(void) privatecfg = safe_alloc(sizeof(TargetFloodConfig)); /* set::anti-flood::target-flood::channel-privmsg */ - channelcfg->cnt[TFP_PRIVMSG] = 60; + channelcfg->cnt[TFP_PRIVMSG] = 45; channelcfg->t[TFP_PRIVMSG] = 5; /* set::anti-flood::target-flood::channel-notice */ channelcfg->cnt[TFP_NOTICE] = 15; - channelcfg->t[TFP_NOTICE] = 2; + channelcfg->t[TFP_NOTICE] = 5; /* set::anti-flood::target-flood::channel-tagmsg */ - channelcfg->cnt[TFP_TAGMSG] = 20; - channelcfg->t[TFP_TAGMSG] = 2; + channelcfg->cnt[TFP_TAGMSG] = 15; + channelcfg->t[TFP_TAGMSG] = 5; /* set::anti-flood::target-flood::private-privmsg */ privatecfg->cnt[TFP_PRIVMSG] = 30; - privatecfg->t[TFP_PRIVMSG] = 4; + privatecfg->t[TFP_PRIVMSG] = 5; /* set::anti-flood::target-flood::private-notice */ - privatecfg->cnt[TFP_NOTICE] = 15; - privatecfg->t[TFP_NOTICE] = 4; + privatecfg->cnt[TFP_NOTICE] = 10; + privatecfg->t[TFP_NOTICE] = 5; /* set::anti-flood::target-flood::private-tagmsg */ privatecfg->cnt[TFP_TAGMSG] = 10; - privatecfg->t[TFP_TAGMSG] = 2; + privatecfg->t[TFP_TAGMSG] = 5; } MOD_INIT()