Fixed an error message displaying incorrectly

This commit is contained in:
Noikoio 2018-03-26 11:53:47 -07:00
parent 4a5e07ba89
commit 666e5406ca

View file

@ -100,7 +100,8 @@ namespace Noikoio.RegexBot.Module.ModCommands.Commands
var (targetId, targetData) = await GetUserDataFromString(g.Id, targetstr); var (targetId, targetData) = await GetUserDataFromString(g.Id, targetstr);
if (targetId == 1) if (targetId == 1)
{ {
await msg.Channel.SendMessageAsync(FailPrefix + FailDefault); await msg.Channel.SendMessageAsync(
string.Format(FailPrefix, (_mode == CommandMode.Ban ? "ban" : "kick")) + FailDefault);
return; return;
} }
if (targetId == 0) if (targetId == 0)