mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Fix setting proxy tags starting with "text"
This commit is contained in:
parent
fde03538e0
commit
f172123190
1 changed files with 4 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue