mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-04-30 03:22:04 -04:00
Continue instead of return on match succes for whispers
This commit is contained in:
@@ -57,7 +57,7 @@ internal class BotCommands
|
||||
var match = regex.Match(messageTrimmed);
|
||||
if (!match.Success) continue;
|
||||
_logger.Debug($"Message matches {regex}");
|
||||
if (!command.WhisperCanInvoke && message.IsWhisper) return;
|
||||
if (!command.WhisperCanInvoke && message.IsWhisper) continue;
|
||||
using var db = new ApplicationDbContext();
|
||||
var user = db.Users.AsNoTracking().FirstOrDefault(u => u.KfId == message.Author.Id);
|
||||
// This should never happen as brand-new users are created upon join
|
||||
|
||||
Reference in New Issue
Block a user