From 1d5fcf2f401424923ccca932c209890f6d55b75b Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 14 Jan 2013 22:34:47 +0000 Subject: [PATCH] Loads API functions into object according to module again. [#131] --- run.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/run.js b/run.js index 1141059..df3279e 100644 --- a/run.js +++ b/run.js @@ -197,7 +197,12 @@ DBot.prototype.reloadModules = function() { module[property][itemName] = _.bind(item, module); _.extend(module[property][itemName], item); }, this); - _.extend(this[property], module[property]); + + if(property == 'api') { + this[property][name] = module[property]; + } else { + _.extend(this[property], module[property]); + } }, this); // Load the module listener