I shan't, it's Christmas!

This commit is contained in:
RogueException
2015-12-23 04:35:14 -04:00
parent f832eadba8
commit 89eba9acb4
14 changed files with 88 additions and 126 deletions

View File

@@ -68,7 +68,7 @@ namespace Discord.Commands
client.MessageReceived += async (s, e) =>
{
if (_allCommands.Count == 0) return;
if (e.Message.User.Id == _client.CurrentUser.Id) return;
if (e.Message.User == null || e.Message.User.Id == _client.CurrentUser.Id) return;
string msg = e.Message.RawText;
if (msg.Length == 0) return;