forked from GitHub/dbot
urgh
This commit is contained in:
parent
827e27bed9
commit
f882d16313
@ -31,7 +31,7 @@ var command = function(dbot) {
|
|||||||
if(this.config.accessOutput) {
|
if(this.config.accessOutput) {
|
||||||
event.reply(dbot.t('access_denied', { 'user': event.user }));
|
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)) {
|
if(this.api.applyRegex(commandName, event)) {
|
||||||
try {
|
try {
|
||||||
var command = dbot.commands[commandName];
|
var command = dbot.commands[commandName];
|
||||||
|
Loading…
Reference in New Issue
Block a user