Loads API functions into object according to module again. [#131]

This commit is contained in:
reality 2013-01-14 22:34:47 +00:00
parent 96792d5008
commit 1d5fcf2f40

7
run.js
View File

@ -197,7 +197,12 @@ DBot.prototype.reloadModules = function() {
module[property][itemName] = _.bind(item, module); module[property][itemName] = _.bind(item, module);
_.extend(module[property][itemName], item); _.extend(module[property][itemName], item);
}, this); }, this);
_.extend(this[property], module[property]);
if(property == 'api') {
this[property][name] = module[property];
} else {
_.extend(this[property], module[property]);
}
}, this); }, this);
// Load the module listener // Load the module listener