From f882d16313f0497b02b992de4ccce3c6ae14e9d6 Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 24 Jul 2013 22:45:57 +0000 Subject: [PATCH] urgh --- modules/command/command.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/command/command.js b/modules/command/command.js index 49a21b4..4ae1d55 100644 --- a/modules/command/command.js +++ b/modules/command/command.js @@ -31,7 +31,7 @@ var command = function(dbot) { if(this.config.accessOutput) { event.reply(dbot.t('access_denied', { 'user': event.user })); } - } else if(!isIgnoring && !dbot.commands[commandName].disabled) { + } else if(!isIgnoring && && _.has(dbot.commands, commandName) && !dbot.commands[commandName].disabled) { if(this.api.applyRegex(commandName, event)) { try { var command = dbot.commands[commandName];