diff --git a/KfChatDotNetBot/Services/BotCommands.cs b/KfChatDotNetBot/Services/BotCommands.cs index 93b3aaf..d3be74b 100644 --- a/KfChatDotNetBot/Services/BotCommands.cs +++ b/KfChatDotNetBot/Services/BotCommands.cs @@ -107,11 +107,9 @@ internal class BotCommands if (isRateLimited.IsRateLimited) { _ = SendCooldownResponse(user, command.RateLimitOptions, isRateLimited.OldestEntryExpires!.Value, command.GetType().Name); + continue; } - else - { - RateLimitService.AddEntry(user, command, message.MessageRawHtmlDecoded); - } + RateLimitService.AddEntry(user, command, message.MessageRawHtmlDecoded); } _ = ProcessMessageAsync(command, message, user, match.Groups); if (!continueAfterProcess) break;