diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-04-21 20:01:40 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-04-21 20:01:40 +0100 |
commit | 06c05a1916d99acc3fc79f0baa28fc9dd71167d7 (patch) | |
tree | 3a26bd40d98955e58c39e240a999787d3532cdd0 /core/modulemanager.lua | |
parent | 28cb1b2a943e79eebccd1e724585c06e6ffbf420 (diff) | |
download | prosody-06c05a1916d99acc3fc79f0baa28fc9dd71167d7.tar.gz prosody-06c05a1916d99acc3fc79f0baa28fc9dd71167d7.zip |
modulemanager: Use api_instance rather than pluginenv.module (same thing)
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r-- | core/modulemanager.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua index f00532a0..f5173f00 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -162,9 +162,9 @@ local function do_load_module(host, module_name) end end - modulemap[pluginenv.module.host][module_name] = pluginenv; - if pluginenv.module.host == "*" then - if not pluginenv.module.global then -- COMPAT w/pre-0.9 + modulemap[api_instance.host][module_name] = pluginenv; + if api_instance.host == "*" then + if not api_instance.global then -- COMPAT w/pre-0.9 log("warn", "mod_%s: Setting module.host = '*' deprecated, call module:set_global() instead", module_name); api_instance:set_global(); end |