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 | e0805574e18fddde821ba9ec6ade8f234f368f1b (patch) | |
tree | 3a26bd40d98955e58c39e240a999787d3532cdd0 | |
parent | 9792c6566b3416e7aef11bd3628f15ca00418132 (diff) | |
download | prosody-e0805574e18fddde821ba9ec6ade8f234f368f1b.tar.gz prosody-e0805574e18fddde821ba9ec6ade8f234f368f1b.zip |
modulemanager: Use api_instance rather than pluginenv.module (same thing)
-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 |