aboutsummaryrefslogtreecommitdiffstats
path: root/core/componentmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-09-30 11:02:31 +0100
committerMatthew Wild <mwild1@gmail.com>2009-09-30 11:02:31 +0100
commit955ff89a519865808714c89025645c225df1637c (patch)
tree51a0e36a7f640d6c3e0c863ef0b05fb8e278d24f /core/componentmanager.lua
parent3a70cdac4976bc5ee4cbac96800f8eae18621be1 (diff)
downloadprosody-955ff89a519865808714c89025645c225df1637c.tar.gz
prosody-955ff89a519865808714c89025645c225df1637c.zip
componentmanager: Use create_component for, er, creating components
Diffstat (limited to 'core/componentmanager.lua')
-rw-r--r--core/componentmanager.lua3
1 files changed, 2 insertions, 1 deletions
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