aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-12-13 13:34:21 +0000
committerMatthew Wild <mwild1@gmail.com>2011-12-13 13:34:21 +0000
commit568f00002d9de66b8026f99728158bfca86336b4 (patch)
treeffce8910a6f4bd2288fc74ce3471c9ab495a5f7a /core/modulemanager.lua
parentfe1b3127b2789925f0bac40c4e279edbdf773982 (diff)
downloadprosody-568f00002d9de66b8026f99728158bfca86336b4.tar.gz
prosody-568f00002d9de66b8026f99728158bfca86336b4.zip
modulemanager: Remove 'config' from module environments (no modules use it that I'm aware of)
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r--core/modulemanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 2d1eeb77..c4d95695 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -117,7 +117,7 @@ function load(host, module_name, config)
end
local _log = logger.init(host..":"..module_name);
- local api_instance = setmetatable({ name = module_name, host = host, path = err, config = config, _log = _log, log = function (self, ...) return _log(...); end }, { __index = api });
+ local api_instance = setmetatable({ name = module_name, host = host, path = err, _log = _log, log = function (self, ...) return _log(...); end }, { __index = api });
local pluginenv = setmetatable({ module = api_instance }, { __index = _G });
api_instance.environment = pluginenv;