mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04: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);
|
var match = regex.Match(messageTrimmed);
|
||||||
if (!match.Success) continue;
|
if (!match.Success) continue;
|
||||||
_logger.Debug($"Message matches {regex}");
|
_logger.Debug($"Message matches {regex}");
|
||||||
if (!command.WhisperCanInvoke && message.IsWhisper) return;
|
if (!command.WhisperCanInvoke && message.IsWhisper) continue;
|
||||||
using var db = new ApplicationDbContext();
|
using var db = new ApplicationDbContext();
|
||||||
var user = db.Users.AsNoTracking().FirstOrDefault(u => u.KfId == message.Author.Id);
|
var user = db.Users.AsNoTracking().FirstOrDefault(u => u.KfId == message.Author.Id);
|
||||||
// This should never happen as brand-new users are created upon join
|
// This should never happen as brand-new users are created upon join
|
||||||
|
|||||||
Reference in New Issue
Block a user