aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-21 20:02:45 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-21 20:02:45 +0100
commitbf4925029fade8287314c858029413aacc5a9a48 (patch)
tree12de7a279920e0edfece0d8bb5e8033e4e3db621 /core
parente0805574e18fddde821ba9ec6ade8f234f368f1b (diff)
downloadprosody-bf4925029fade8287314c858029413aacc5a9a48.tar.gz
prosody-bf4925029fade8287314c858029413aacc5a9a48.zip
modulemanager: Use modulemap rather than hosts[host] (fix for when host == "*")
Diffstat (limited to 'core')
-rw-r--r--core/modulemanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index f5173f00..f7594cd9 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -169,7 +169,7 @@ local function do_load_module(host, module_name)
api_instance:set_global();
end
else
- hosts[host].modules[module_name] = pluginenv;
+ modulemap[host][module_name] = pluginenv;
end
end
if not ok then