From 5caf040bbcd39e7ebd5f5b6b2608c973d71934f0 Mon Sep 17 00:00:00 2001 From: Ske Date: Thu, 30 Jan 2020 10:20:47 +0100 Subject: [PATCH] Properly handle setting empty proxy tags --- PluralKit.Bot/Commands/MemberCommands.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PluralKit.Bot/Commands/MemberCommands.cs b/PluralKit.Bot/Commands/MemberCommands.cs index 6946e6c6..f3fbad7e 100644 --- a/PluralKit.Bot/Commands/MemberCommands.cs +++ b/PluralKit.Bot/Commands/MemberCommands.cs @@ -201,7 +201,8 @@ namespace PluralKit.Bot.Commands } // "Sub"command: no arguments clearing - if (!ctx.HasNext()) + // Also matches the pseudo-subcommand "text" which is equivalent to emoty proxy tags on both sides. + if (!ctx.HasNext() || ctx.Match("text")) { // If we already have multiple tags, this would clear everything, so prompt that if (target.ProxyTags.Count > 1)