forked from GitHub/dbot
Merge branch 'master' of github.com:reality/depressionbot
This commit is contained in:
commit
de075a3a2d
@ -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