Software /
code /
prosody
Changeset
4151:a1ac8f064dcb
modulemanager: Added module.path to the plugin API to let plugins determine their load path.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 20 Feb 2011 20:06:38 +0500 |
parents | 4150:2894ca33ec45 |
children | 4152:4d52812d018d |
files | core/modulemanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/modulemanager.lua Sun Feb 20 20:03:43 2011 +0500 +++ b/core/modulemanager.lua Sun Feb 20 20:06:38 2011 +0500 @@ -117,7 +117,7 @@ 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;