aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-21 20:01:40 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-21 20:01:40 +0100
commit06c05a1916d99acc3fc79f0baa28fc9dd71167d7 (patch)
tree3a26bd40d98955e58c39e240a999787d3532cdd0 /core
parent28cb1b2a943e79eebccd1e724585c06e6ffbf420 (diff)
downloadprosody-06c05a1916d99acc3fc79f0baa28fc9dd71167d7.tar.gz
prosody-06c05a1916d99acc3fc79f0baa28fc9dd71167d7.zip
modulemanager: Use api_instance rather than pluginenv.module (same thing)
Diffstat (limited to 'core')
-rw-r--r--core/modulemanager.lua6
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