Software /
code /
prosody
Diff
core/modulemanager.lua @ 4454:c73793664bfb
modulemanager: Remove 'config' from module environments (no modules use it that I'm aware of)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 13 Dec 2011 13:34:21 +0000 |
parent | 4383:718445c040c4 |
child | 4531:c778ce7e3c78 |
line wrap: on
line diff
--- a/core/modulemanager.lua Mon Dec 12 14:53:12 2011 +0500 +++ b/core/modulemanager.lua Tue Dec 13 13:34:21 2011 +0000 @@ -117,7 +117,7 @@ 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;