aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-10-18 01:19:03 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-10-18 01:19:03 +0500
commita180af24ea2354fb13382166ff9d3d26d777a8ad (patch)
tree6d83dd0a4545fa69d6feda29681dc65da8f992c3
parentfe8f9b9c375461d4b95f483b48ffdb02d0669819 (diff)
downloadprosody-a180af24ea2354fb13382166ff9d3d26d777a8ad.tar.gz
prosody-a180af24ea2354fb13382166ff9d3d26d777a8ad.zip
modulemanager: Fixed: Stanza modules were being auto-loaded for components (regression in hg:1e674dae31ae).
-rw-r--r--core/modulemanager.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 7c30cb37..f703889f 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -65,9 +65,11 @@ function load_modules_for_host(host)
end
-- Load auto-loaded modules for this host
- for _, module in ipairs(autoload_modules) do
- if not disabled_set[module] then
- load(host, module);
+ if hosts[host].type == "local" then
+ for _, module in ipairs(autoload_modules) do
+ if not disabled_set[module] then
+ load(host, module);
+ end
end
end