Merge branch 'master' of github.com:reality/depressionbot

This commit is contained in:
reality 2013-01-15 17:52:22 +00:00
commit de075a3a2d

View File

@ -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) {