Comparison

core/componentmanager.lua @ 1775:5c035b7a6de1

ComponentManager: Removed unused variable.
author Waqas Hussain <waqas20@gmail.com>
date Fri, 11 Sep 2009 16:33:40 +0500
parent 1774:53bd9c9f3103
child 1853:5da0e3b1f847
comparison
equal deleted inserted replaced
1774:53bd9c9f3103 1775:5c035b7a6de1
29 if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then 29 if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then
30 origin.send(st.error_reply(stanza, "wait", "service-unavailable", "Component unavailable")); 30 origin.send(st.error_reply(stanza, "wait", "service-unavailable", "Component unavailable"));
31 end 31 end
32 end 32 end
33 33
34 local components_loaded_once;
35 function load_enabled_components(config) 34 function load_enabled_components(config)
36 local defined_hosts = config or configmanager.getconfig(); 35 local defined_hosts = config or configmanager.getconfig();
37 36
38 for host, host_config in pairs(defined_hosts) do 37 for host, host_config in pairs(defined_hosts) do
39 if host ~= "*" and ((host_config.core.enabled == nil or host_config.core.enabled) and type(host_config.core.component_module) == "string") then 38 if host ~= "*" and ((host_config.core.enabled == nil or host_config.core.enabled) and type(host_config.core.component_module) == "string") then