stability! thx bloodskilled

This commit is contained in:
Master Kwoth 2016-02-02 13:18:13 +01:00
parent 39e53cbbf8
commit 4938b1b5fe

View File

@ -113,6 +113,14 @@ namespace NadekoBot {
return;
}
client.ClientAPI.SendingRequest += (s, e) =>
{
var request = e.Request as Discord.API.Client.Rest.SendMessageRequest;
if (request != null) {
if (string.IsNullOrWhiteSpace(request.Content))
e.Cancel = true;
}
};
});
Console.WriteLine("Exiting...");
Console.ReadKey();