3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 19:52:36 +01:00
This commit is contained in:
reality 2013-07-24 22:45:57 +00:00
parent 827e27bed9
commit f882d16313

View File

@ -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];