From e6fab52e45fe3831c1399dae4a6620428554bd63 Mon Sep 17 00:00:00 2001 From: Noikoio Date: Sat, 2 Dec 2017 20:53:01 -0800 Subject: [PATCH] Fix notify failure text not showing on all failures --- Module/ModTools/Commands/BanKick.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Module/ModTools/Commands/BanKick.cs b/Module/ModTools/Commands/BanKick.cs index b237faa..6e4538c 100644 --- a/Module/ModTools/Commands/BanKick.cs +++ b/Module/ModTools/Commands/BanKick.cs @@ -125,6 +125,7 @@ namespace Noikoio.RegexBot.Module.ModTools.Commands notifyfail = true; } } + else notifyfail = true; // Do the action try @@ -138,7 +139,7 @@ namespace Noikoio.RegexBot.Module.ModTools.Commands string resultmsg = BuildSuccessMessage(targetdisp); if (notifyfail) { - resultmsg += $"\n(Failed to send " + (_mode == CommandMode.Ban ? "ban" : "kick") + " notification to user.)"; + resultmsg += $"\n(could not send " + (_mode == CommandMode.Ban ? "ban" : "kick") + " notification to user.)"; } await msg.Channel.SendMessageAsync(resultmsg); }