Prevent bot from saying @here . Thanks to meew0

This commit is contained in:
Master Kwoth 2016-04-19 07:29:24 +02:00
parent d7e0a0662e
commit fa213d2a1b

View File

@ -229,7 +229,8 @@ namespace NadekoBot
{
var request = e.Request as Discord.API.Client.Rest.SendMessageRequest;
if (request == null) return;
request.Content = request.Content?.Replace("@everyone", "@everyοne") ?? "_error_";
// meew0 is magic
request.Content = request.Content?.Replace("@everyone", "@everyοne").Replace("@here", "@һere") ?? "_error_";
if (string.IsNullOrWhiteSpace(request.Content))
e.Cancel = true;
};