diff options
author | Waqas Hussain <waqas20@gmail.com> | 2011-02-20 20:06:38 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2011-02-20 20:06:38 +0500 |
commit | fca75eb761a18d339035e6a1455a6d80baa5e93d (patch) | |
tree | dd0d395213f9b136348a99ee6c607a7f53fde1df | |
parent | 6ae4c18ce76437a4b755bc1db31a36d82281d2bf (diff) | |
download | prosody-fca75eb761a18d339035e6a1455a6d80baa5e93d.tar.gz prosody-fca75eb761a18d339035e6a1455a6d80baa5e93d.zip |
modulemanager: Added module.path to the plugin API to let plugins determine their load path.
-rw-r--r-- | core/modulemanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua index e8f76aeb..07a2b1c9 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, config = config, _log = _log, log = function (self, ...) return _log(...); end }, { __index = api }); + local api_instance = setmetatable({ name = module_name, host = host, path = err, config = config, _log = _log, log = function (self, ...) return _log(...); end }, { __index = api }); local pluginenv = setmetatable({ module = api_instance }, { __index = _G }); api_instance.environment = pluginenv; |