diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-09-30 11:02:31 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-09-30 11:02:31 +0100 |
commit | 955ff89a519865808714c89025645c225df1637c (patch) | |
tree | 51a0e36a7f640d6c3e0c863ef0b05fb8e278d24f /core | |
parent | 3a70cdac4976bc5ee4cbac96800f8eae18621be1 (diff) | |
download | prosody-955ff89a519865808714c89025645c225df1637c.tar.gz prosody-955ff89a519865808714c89025645c225df1637c.zip |
componentmanager: Use create_component for, er, creating components
Diffstat (limited to 'core')
-rw-r--r-- | core/componentmanager.lua | 3 |
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 |