Software /
code /
prosody
Comparison
core/modulemanager.lua @ 1988:a6e7fe0fc3dd
modulemanager: Fixed: Stanza modules were being auto-loaded for components (regression in hg:1e674dae31ae).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 18 Oct 2009 01:19:03 +0500 |
parent | 1987:94ecd3e7be87 |
child | 1993:09621f8d0366 |
comparison
equal
deleted
inserted
replaced
1987:94ecd3e7be87 | 1988:a6e7fe0fc3dd |
---|---|
63 disabled_set[module] = true; | 63 disabled_set[module] = true; |
64 end | 64 end |
65 end | 65 end |
66 | 66 |
67 -- Load auto-loaded modules for this host | 67 -- Load auto-loaded modules for this host |
68 for _, module in ipairs(autoload_modules) do | 68 if hosts[host].type == "local" then |
69 if not disabled_set[module] then | 69 for _, module in ipairs(autoload_modules) do |
70 load(host, module); | 70 if not disabled_set[module] then |
71 load(host, module); | |
72 end | |
71 end | 73 end |
72 end | 74 end |
73 | 75 |
74 -- Load modules from global section | 76 -- Load modules from global section |
75 if config.get(host, "core", "load_global_modules") ~= false then | 77 if config.get(host, "core", "load_global_modules") ~= false then |