aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2011-02-20 20:06:38 +0500
committerWaqas Hussain <waqas20@gmail.com>2011-02-20 20:06:38 +0500
commite55a81dfae6b0033938e30cd466e203e1aaa895a (patch)
treeef6ea9a655dfb392d339b5c987f725b663e73e96 /core/modulemanager.lua
parent55f906ce99f7c73cf4ccb4084ddf89ee85f97270 (diff)
downloadprosody-e55a81dfae6b0033938e30cd466e203e1aaa895a.tar.gz
prosody-e55a81dfae6b0033938e30cd466e203e1aaa895a.zip
modulemanager: Added module.path to the plugin API to let plugins determine their load path.
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 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;