This should fix that undefined whatsit

This commit is contained in:
Luke Slater 2013-01-15 18:38:08 +01:00
parent 921da917a4
commit c783113cca

View File

@ -33,7 +33,7 @@ var command = function(dbot) {
var results = command.apply(dbot.modules[command.module], [event]);
if(_.has(command, 'hooks') && results !== false) {
_.each(command['hooks'], function(hook) {
hook.apply(hook.module, results);
hook.apply(hook.module, _.values(results));
}, this);
}
} catch(err) {