From 57e1f7eb04ad0d6b5d9dfa91f4cc0011f9316362 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Fri, 6 Feb 2026 23:30:07 -0600 Subject: [PATCH] Break on rate limit instead of continue so it doesn't spam multiple rate limit messages if multiple regexes match --- KfChatDotNetBot/Services/BotCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KfChatDotNetBot/Services/BotCommands.cs b/KfChatDotNetBot/Services/BotCommands.cs index 23ffc52..86a253c 100644 --- a/KfChatDotNetBot/Services/BotCommands.cs +++ b/KfChatDotNetBot/Services/BotCommands.cs @@ -107,7 +107,7 @@ internal class BotCommands if (isRateLimited.IsRateLimited) { _ = SendCooldownResponse(user, command.RateLimitOptions, isRateLimited.OldestEntryExpires!.Value, command.GetType().Name); - continue; + break; } RateLimitService.AddEntry(user, command, message.MessageRawHtmlDecoded); }