From e42002b754d0aeb5121631e6ef61c53a8e1f2870 Mon Sep 17 00:00:00 2001 From: spiral Date: Fri, 21 Jan 2022 00:00:26 -0500 Subject: [PATCH] fix: add missing return in pk;debug proxy --- PluralKit.Bot/Commands/Checks.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PluralKit.Bot/Commands/Checks.cs b/PluralKit.Bot/Commands/Checks.cs index 6fc1c065..c410ab01 100644 --- a/PluralKit.Bot/Commands/Checks.cs +++ b/PluralKit.Bot/Commands/Checks.cs @@ -233,7 +233,10 @@ public class Checks throw new PKError(failedToGetMessage); if ((_botConfig.Prefixes ?? BotConfig.DefaultPrefixes).Any(p => msg.Content.StartsWith(p))) + { await ctx.Reply("This message starts with the bot's prefix, and was parsed as a command."); + return; + } if (msg.Author.Bot) throw new PKError("You cannot check messages sent by a bot."); if (msg.WebhookId != null)