From 666e5406ca0320500654393c2c8c8b2d901b4c88 Mon Sep 17 00:00:00 2001 From: Noikoio Date: Mon, 26 Mar 2018 11:53:47 -0700 Subject: [PATCH] Fixed an error message displaying incorrectly --- Module/ModCommands/Commands/BanKick.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Module/ModCommands/Commands/BanKick.cs b/Module/ModCommands/Commands/BanKick.cs index 4e520cf..b815067 100644 --- a/Module/ModCommands/Commands/BanKick.cs +++ b/Module/ModCommands/Commands/BanKick.cs @@ -100,7 +100,8 @@ namespace Noikoio.RegexBot.Module.ModCommands.Commands var (targetId, targetData) = await GetUserDataFromString(g.Id, targetstr); if (targetId == 1) { - await msg.Channel.SendMessageAsync(FailPrefix + FailDefault); + await msg.Channel.SendMessageAsync( + string.Format(FailPrefix, (_mode == CommandMode.Ban ? "ban" : "kick")) + FailDefault); return; } if (targetId == 0)