mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Do not execute a command after sending the cooldown response
This commit is contained in:
@@ -107,11 +107,9 @@ internal class BotCommands
|
|||||||
if (isRateLimited.IsRateLimited)
|
if (isRateLimited.IsRateLimited)
|
||||||
{
|
{
|
||||||
_ = SendCooldownResponse(user, command.RateLimitOptions, isRateLimited.OldestEntryExpires!.Value, command.GetType().Name);
|
_ = 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);
|
_ = ProcessMessageAsync(command, message, user, match.Groups);
|
||||||
if (!continueAfterProcess) break;
|
if (!continueAfterProcess) break;
|
||||||
|
|||||||
Reference in New Issue
Block a user