From c783113cca5274730e08f11a7a269841fa1eb539 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Tue, 15 Jan 2013 18:38:08 +0100 Subject: [PATCH] This should fix that undefined whatsit --- modules/command/command.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/command/command.js b/modules/command/command.js index fd3606d..0895a94 100644 --- a/modules/command/command.js +++ b/modules/command/command.js @@ -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) {