From f172123190b0f2c8d08158db3893a895cde2af3a Mon Sep 17 00:00:00 2001 From: Ske Date: Sat, 1 Feb 2020 23:08:33 +0100 Subject: [PATCH] Fix setting proxy tags starting with "text" --- PluralKit.Bot/Commands/MemberProxy.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PluralKit.Bot/Commands/MemberProxy.cs b/PluralKit.Bot/Commands/MemberProxy.cs index 81a13237..fd60ea23 100644 --- a/PluralKit.Bot/Commands/MemberProxy.cs +++ b/PluralKit.Bot/Commands/MemberProxy.cs @@ -1,4 +1,5 @@ -using System.Linq; +using System; +using System.Linq; using System.Threading.Tasks; using PluralKit.Bot.CommandSystem; @@ -43,8 +44,8 @@ namespace PluralKit.Bot.Commands } // "Sub"command: no arguments clearing - // Also matches the pseudo-subcommand "text" which is equivalent to emoty proxy tags on both sides. - if (!ctx.HasNext() || ctx.Match("text")) + // Also matches the pseudo-subcommand "text" which is equivalent to empty proxy tags on both sides. + if (!ctx.HasNext() || ctx.Remainder().Equals("text", StringComparison.InvariantCultureIgnoreCase)) { // If we already have multiple tags, this would clear everything, so prompt that if (target.ProxyTags.Count > 1)