From 437808afce2052dc1107bff68e618ab43deabf0c Mon Sep 17 00:00:00 2001 From: kittens Date: Fri, 21 Aug 2020 15:50:34 -0400 Subject: [PATCH] Add flags to switch delete all --- PluralKit.Bot/Commands/Switch.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PluralKit.Bot/Commands/Switch.cs b/PluralKit.Bot/Commands/Switch.cs index 5d343cab..7a2251bf 100644 --- a/PluralKit.Bot/Commands/Switch.cs +++ b/PluralKit.Bot/Commands/Switch.cs @@ -107,7 +107,7 @@ namespace PluralKit.Bot { ctx.CheckSystem(); - if (ctx.Match("all", "clear")) + if (ctx.Match("all", "clear") || ctx.MatchFlag("all", "clear")) { // Subcommand: "delete all" var purgeMsg = $"{Emojis.Warn} This will delete *all registered switches* in your system. Are you sure you want to proceed?"; @@ -145,4 +145,4 @@ namespace PluralKit.Bot await ctx.Reply($"{Emojis.Success} Switch deleted."); } } -} \ No newline at end of file +}