98 |
98 |
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 -- FIXME only load for a.b.c if b.c has dialback, and/or check in config |
|
104 modulemanager.load(host, "dialback"); |
103 modulemanager.load(host, "dialback"); |
105 log("debug", "component added: "..host); |
104 log("debug", "component added: "..host); |
106 return session or hosts[host]; |
105 return session or hosts[host]; |
107 else |
106 else |
108 log("error", "Attempt to set component for existing host: "..host); |
107 log("error", "Attempt to set component for existing host: "..host); |