Add anti-flood protection

This commit is contained in:
Gustas
2022-07-12 18:55:57 +03:00
committed by abcdefg30
parent ac623d784a
commit 58fcffa429
4 changed files with 109 additions and 19 deletions

View File

@@ -103,7 +103,16 @@ namespace OpenRA
public bool EnableLintChecks = true;
[Desc("Delay in milliseconds before newly joined players can send chat messages.")]
public int JoinChatDelay = 5000;
public int FloodLimitJoinCooldown = 5000;
[Desc("Amount of miliseconds player chat messages are tracked for.")]
public int FloodLimitInterval = 5000;
[Desc("Amount of chat messages per FloodLimitInterval a players can send before flood is detected.")]
public int FloodLimitMessageCount = 5;
[Desc("Delay in milliseconds before players can send chat messages after flood was detected.")]
public int FloodLimitCooldown = 15000;
public ServerSettings Clone()
{