From b3c3734e22e2857246698f0a3286bb91afd5f725 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Mon, 8 Sep 2025 19:34:23 -0500 Subject: [PATCH] Do not execute a command after sending the cooldown response --- KfChatDotNetBot/Services/BotCommands.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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;