mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 17:20:14 +00:00
Properly handle setting empty proxy tags
This commit is contained in:
parent
8e1b3dfa98
commit
5caf040bbc
1 changed files with 2 additions and 1 deletions
|
|
@ -201,7 +201,8 @@ namespace PluralKit.Bot.Commands
|
||||||
}
|
}
|
||||||
|
|
||||||
// "Sub"command: no arguments clearing
|
// "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 we already have multiple tags, this would clear everything, so prompt that
|
||||||
if (target.ProxyTags.Count > 1)
|
if (target.ProxyTags.Count > 1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue