Comparison

core/componentmanager.lua @ 1942:f74c267f7e1b

componentmanager: Auto-load mod_tls for components #hack
author Matthew Wild <mwild1@gmail.com>
date Fri, 09 Oct 2009 00:22:33 +0100
parent 1941:3f765fde5149
child 1970:edab0c61fc02
comparison
equal deleted inserted replaced
1941:3f765fde5149 1942:f74c267f7e1b
99 -- add to disco_items 99 -- add to disco_items
100 if not(host:find("@", 1, true) or host:find("/", 1, true)) and host:find(".", 1, true) then 100 if not(host:find("@", 1, true) or host:find("/", 1, true)) and host:find(".", 1, true) then
101 disco_items:set(host:sub(host:find(".", 1, true)+1), host, true); 101 disco_items:set(host:sub(host:find(".", 1, true)+1), host, true);
102 end 102 end
103 modulemanager.load(host, "dialback"); 103 modulemanager.load(host, "dialback");
104 modulemanager.load(host, "tls");
104 log("debug", "component added: "..host); 105 log("debug", "component added: "..host);
105 return session or hosts[host]; 106 return session or hosts[host];
106 else 107 else
107 log("error", "Attempt to set component for existing host: "..host); 108 log("error", "Attempt to set component for existing host: "..host);
108 end 109 end