From acadad2a437c184b1cf24238a1f306896b96e7ff Mon Sep 17 00:00:00 2001 From: Ske Date: Wed, 30 Oct 2019 08:44:17 +0100 Subject: [PATCH] Add forgotten conditional to proxy tag clear disclaimer --- PluralKit.Bot/Commands/MemberCommands.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/PluralKit.Bot/Commands/MemberCommands.cs b/PluralKit.Bot/Commands/MemberCommands.cs index cb4c7dba..bcf43fad 100644 --- a/PluralKit.Bot/Commands/MemberCommands.cs +++ b/PluralKit.Bot/Commands/MemberCommands.cs @@ -168,10 +168,13 @@ namespace PluralKit.Bot.Commands if (!ctx.HasNext()) { // If we already have multiple tags, this would clear everything, so prompt that - var msg = await ctx.Reply( - $"{Emojis.Warn} You already have multiple proxy tags set: {target.ProxyTagsString()}\nDo you want to clear them all?"); - if (!await ctx.PromptYesNo(msg)) - throw Errors.GenericCancelled(); + if (target.ProxyTags.Count > 1) + { + var msg = await ctx.Reply( + $"{Emojis.Warn} You already have multiple proxy tags set: {target.ProxyTagsString()}\nDo you want to clear them all?"); + if (!await ctx.PromptYesNo(msg)) + throw Errors.GenericCancelled(); + } target.ProxyTags = new ProxyTag[] { };