From 049201aefbdb1faf28eb4c345b4d2af42b77daa6 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 23 Aug 2010 01:18:52 +0100 Subject: componentmanager: Support the 'disallow_s2s' option for components too (thanks darkhopatomopus) --- core/componentmanager.lua | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3