From 5902968924b8a7fae9cd80f7bfa05f9d2f31e816 Mon Sep 17 00:00:00 2001 From: Sergey Gut Date: Wed, 16 Feb 2022 19:49:35 +0300 Subject: [PATCH] Fix validation of user flooding --- Core/Service/MemoryAntiFloodService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Service/MemoryAntiFloodService.cs b/Core/Service/MemoryAntiFloodService.cs index ce5086b..0b877f5 100644 --- a/Core/Service/MemoryAntiFloodService.cs +++ b/Core/Service/MemoryAntiFloodService.cs @@ -34,7 +34,7 @@ public class MemoryAntiFloodService : IAntiFlood } } - return (DateTime.UtcNow >= expirationTime); + return (DateTime.UtcNow < expirationTime); } public void RecordAction(Chat chat, User user)