Software /
code /
prosody
Comparison
core/componentmanager.lua @ 1941:3f765fde5149
componentmanager: Remove FIXME
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 09 Oct 2009 00:19:46 +0100 |
parent | 1940:85d51cea2c4c |
child | 1942:f74c267f7e1b |
comparison
equal
deleted
inserted
replaced
1940:85d51cea2c4c | 1941:3f765fde5149 |
---|---|
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); |