From 955ff89a519865808714c89025645c225df1637c Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 30 Sep 2009 11:02:31 +0100 Subject: componentmanager: Use create_component for, er, creating components --- core/componentmanager.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/componentmanager.lua b/core/componentmanager.lua index 08868236..a17d4091 100644 --- a/core/componentmanager.lua +++ b/core/componentmanager.lua @@ -51,7 +51,8 @@ function load_enabled_components(config) for host, host_config in pairs(defined_hosts) do if host ~= "*" and ((host_config.core.enabled == nil or host_config.core.enabled) and type(host_config.core.component_module) == "string") then - hosts[host] = { type = "component", host = host, connected = false, s2sout = {}, events = events_new() }; + hosts[host] = create_component(host); + hosts[host].connected = false; components[host] = default_component_handler; local ok, err = modulemanager.load(host, host_config.core.component_module); if not ok then -- cgit v1.2.3