mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Break on rate limit instead of continue so it doesn't spam multiple rate limit messages if multiple regexes match
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user