Dont parse commands if there are none configured.

This commit is contained in:
Brandon Smith
2015-09-01 19:34:27 -03:00
parent e3af3988b9
commit 7f8b61f728

View File

@@ -27,8 +27,12 @@ namespace Discord
MessageCreated += async (s, e) =>
{
//If commands aren't being used, don't bother processing them
if (_commands.Count == 0)
return;
//Ignore messages from ourselves
if (e.Message.UserId == _myId)
if (e.Message.UserId == _myId)
return;
//Check for the command character