From bcc96591173fb6edd4daed634318c5337640faaf Mon Sep 17 00:00:00 2001 From: Ske Date: Thu, 27 Feb 2020 18:07:05 +0100 Subject: [PATCH] Add "clear" subcommand in addition to flags --- PluralKit.Bot/Commands/SystemEdit.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PluralKit.Bot/Commands/SystemEdit.cs b/PluralKit.Bot/Commands/SystemEdit.cs index 01f4b54f..235c60b6 100644 --- a/PluralKit.Bot/Commands/SystemEdit.cs +++ b/PluralKit.Bot/Commands/SystemEdit.cs @@ -38,7 +38,7 @@ namespace PluralKit.Bot public async Task Description(Context ctx) { ctx.CheckSystem(); - if (ctx.MatchFlag("c", "clear")) + if (ctx.MatchFlag("c", "clear") || ctx.Match("clear")) { ctx.System.Description = null; await _data.SaveSystem(ctx.System); @@ -73,7 +73,7 @@ namespace PluralKit.Bot { ctx.CheckSystem(); - if (ctx.MatchFlag("c", "clear")) + if (ctx.MatchFlag("c", "clear") || ctx.Match("clear")) { ctx.System.Tag = null; await _data.SaveSystem(ctx.System); @@ -190,7 +190,7 @@ namespace PluralKit.Bot { if (ctx.System == null) throw Errors.NoSystemError; - if (ctx.MatchFlag("c", "clear")) + if (ctx.MatchFlag("c", "clear") || ctx.Match("clear")) { ctx.System.UiTz = "UTC"; await _data.SaveSystem(ctx.System);