aboutsummaryrefslogtreecommitdiffstats
path: root/core/componentmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-08-23 01:18:52 +0100
committerMatthew Wild <mwild1@gmail.com>2010-08-23 01:18:52 +0100
commit049201aefbdb1faf28eb4c345b4d2af42b77daa6 (patch)
treebfebe3ef96bbde556a380152b9c3873828631f9e /core/componentmanager.lua
parent5ceda8f54625007a183b5fe772f979141d102de4 (diff)
downloadprosody-049201aefbdb1faf28eb4c345b4d2af42b77daa6.tar.gz
prosody-049201aefbdb1faf28eb4c345b4d2af42b77daa6.zip
componentmanager: Support the 'disallow_s2s' option for components too (thanks darkhopatomopus)
Diffstat (limited to 'core/componentmanager.lua')
-rw-r--r--core/componentmanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/componentmanager.lua b/core/componentmanager.lua
index 129c2ba8..1f0fa81f 100644
--- a/core/componentmanager.lua
+++ b/core/componentmanager.lua
@@ -42,6 +42,7 @@ function load_enabled_components(config)
if host ~= "*" and ((host_config.core.enabled == nil or host_config.core.enabled) and type(host_config.core.component_module) == "string") then
hosts[host] = create_component(host);
hosts[host].connected = false;
+ disallow_s2s = configmanager.get(host, "core", "disallow_s2s");
components[host] = default_component_handler;
local ok, err = modulemanager.load(host, host_config.core.component_module);
if not ok then