mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Notification when user is flooding, fixes
This commit is contained in:
@@ -27,7 +27,7 @@ public class MemoryAntiFloodService : IAntiFlood
|
||||
var dictKey = DictKey(chat, user);
|
||||
if (_bannedUsers.TryGetValue(dictKey, out var expirationTime))
|
||||
{
|
||||
if (DateTime.UtcNow <= expirationTime)
|
||||
if (DateTime.UtcNow > expirationTime)
|
||||
{
|
||||
expirationTime = DateTime.MinValue;
|
||||
_bannedUsers.Remove(dictKey);
|
||||
|
||||
Reference in New Issue
Block a user