componentmanager: Support the 'disallow_s2s' option for components too (thanks darkhopatomopus)

Mon, 23 Aug 2010 01:18:52 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 23 Aug 2010 01:18:52 +0100
changeset 3462
cf72ef3c9009
parent 3461
447634564356
child 3463
1644ab13a4ca

componentmanager: Support the 'disallow_s2s' option for components too (thanks darkhopatomopus)

core/componentmanager.lua file | annotate | diff | comparison | revisions
--- a/core/componentmanager.lua	Mon Aug 23 01:06:13 2010 +0100
+++ b/core/componentmanager.lua	Mon Aug 23 01:18:52 2010 +0100
@@ -42,6 +42,7 @@
 		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

mercurial