Fix for empty messages

This commit is contained in:
Deukhoofd 2018-03-29 19:38:23 +02:00
parent 25d691c4e9
commit 65794edf2c
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ namespace DeukBot4.MessageHandlers.CommandHandler
public static async Task HandleMessage(SocketMessage message)
{
if (string.IsNullOrWhiteSpace(message.Content))
return;
if (message.Content[0] != CommandTrigger) return;
var req = await CommandRequest.Create(message);
var resultCode = req.Item2;