Properly handle setting empty proxy tags

This commit is contained in:
Ske 2020-01-30 10:20:47 +01:00
parent 8e1b3dfa98
commit 5caf040bbc

View File

@ -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)