mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-30 06:16:39 +02:00
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.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user