Comparison

core/componentmanager.lua @ 1992:bbaba17537a9

componentmanager: Added a FIXME comment.
author Waqas Hussain <waqas20@gmail.com>
date Sun, 18 Oct 2009 03:08:41 +0500
parent 1991:ed4cd15bf4dd
child 2075:b4bfa6cb3d83
comparison
equal deleted inserted replaced
1991:ed4cd15bf4dd 1992:bbaba17537a9
121 if host_config and ((host_config.core.enabled == nil or host_config.core.enabled) and type(host_config.core.component_module) == "string") then 121 if host_config and ((host_config.core.enabled == nil or host_config.core.enabled) and type(host_config.core.component_module) == "string") then
122 -- Set default handler 122 -- Set default handler
123 components[host] = default_component_handler; 123 components[host] = default_component_handler;
124 else 124 else
125 -- Component not in config, or disabled, remove 125 -- Component not in config, or disabled, remove
126 hosts[host] = nil; 126 hosts[host] = nil; -- FIXME do proper unload of all modules and other cleanup before removing
127 components[host] = nil; 127 components[host] = nil;
128 end 128 end
129 -- remove from disco_items 129 -- remove from disco_items
130 if not(host:find("@", 1, true) or host:find("/", 1, true)) and host:find(".", 1, true) then 130 if not(host:find("@", 1, true) or host:find("/", 1, true)) and host:find(".", 1, true) then
131 disco_items:remove(host:sub(host:find(".", 1, true)+1), host); 131 disco_items:remove(host:sub(host:find(".", 1, true)+1), host);