Continue instead of return on match succes for whispers

This commit is contained in:
barelyprofessional
2026-03-18 23:57:30 -05:00
parent 6240f7c7f1
commit b33311c37b

View File

@@ -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