diff --git a/src/plugins.js b/src/plugins.js index ae7274c2fb..d6c5a6db79 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -1,9 +1,10 @@ var fs = require('fs'), path = require('path'), RDB = require('./redis.js'), + async = require('async'), plugins = { libraries: [], - loaded_hooks: {}, + loadedHooks: {}, init: function() { if (this.initialized) return; if (global.env === 'development') console.log('Info: [plugins] Initializing plugins system'); @@ -28,7 +29,7 @@ var fs = require('fs'), _self.libraries[pluginData.id] = require(path.join(pluginPath, pluginData.library)); if (pluginData.hooks) { for(var x=0,numHooks=pluginData.hooks.length;x