Fix notify failure text not showing on all failures

This commit is contained in:
Noikoio 2017-12-02 20:53:01 -08:00
parent ac06d4157a
commit e6fab52e45

View file

@ -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);
}