Fix notify failure text not showing on all failures
This commit is contained in:
parent
ac06d4157a
commit
e6fab52e45
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue