forked from GitHub/dbot
This should fix that undefined whatsit
This commit is contained in:
parent
921da917a4
commit
c783113cca
@ -33,7 +33,7 @@ var command = function(dbot) {
|
|||||||
var results = command.apply(dbot.modules[command.module], [event]);
|
var results = command.apply(dbot.modules[command.module], [event]);
|
||||||
if(_.has(command, 'hooks') && results !== false) {
|
if(_.has(command, 'hooks') && results !== false) {
|
||||||
_.each(command['hooks'], function(hook) {
|
_.each(command['hooks'], function(hook) {
|
||||||
hook.apply(hook.module, results);
|
hook.apply(hook.module, _.values(results));
|
||||||
}, this);
|
}, this);
|
||||||
}
|
}
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user