From bb7ee130a67f2fabbee2afee3033581a1c489f53 Mon Sep 17 00:00:00 2001 From: Ske Date: Sun, 5 Jul 2020 13:26:49 +0200 Subject: [PATCH] Fix error when proxying all-whitespace message --- PluralKit.Bot/Proxy/ProxyMatcher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Proxy/ProxyMatcher.cs b/PluralKit.Bot/Proxy/ProxyMatcher.cs index 6a32f51c..cb01e4a7 100644 --- a/PluralKit.Bot/Proxy/ProxyMatcher.cs +++ b/PluralKit.Bot/Proxy/ProxyMatcher.cs @@ -35,7 +35,7 @@ namespace PluralKit.Bot // Edge case: If we got a match with blank inner text, we'd normally just send w/ attachments // However, if there are no attachments, the user probably intended something else, so we "un-match" and proceed to autoproxy - return hasAttachments || match.Content.Length > 0; + return hasAttachments || match.Content.Trim().Length > 0; } private bool TryMatchAutoproxy(MessageContext ctx, IReadOnlyCollection members, string messageContent,