# HG changeset patch # User Matthew Wild # Date 1254304951 -3600 # Node ID 5529d3c8eee775498dc56eb29ff9755d14a73e89 # Parent 0033359aeb700c946c36a05b653965134b9c16f4 componentmanager: Use create_component for, er, creating components diff -r 0033359aeb70 -r 5529d3c8eee7 core/componentmanager.lua --- a/core/componentmanager.lua Wed Sep 30 11:01:21 2009 +0100 +++ b/core/componentmanager.lua Wed Sep 30 11:02:31 2009 +0100 @@ -51,7 +51,8 @@ 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