diff options
author | Waqas Hussain <waqas20@gmail.com> | 2008-12-09 05:22:43 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2008-12-09 05:22:43 +0500 |
commit | 347ab4a0d99ce14c242d85e2f72f87f5161cefcb (patch) | |
tree | 671c4002bd5cea9abaa604037e87cbfa1a172e75 /core/componentmanager.lua | |
parent | df217cc0f1d3dadaf883fcc6d8a36a2d87aa3d75 (diff) | |
download | prosody-347ab4a0d99ce14c242d85e2f72f87f5161cefcb.tar.gz prosody-347ab4a0d99ce14c242d85e2f72f87f5161cefcb.zip |
Enable dialback for components
Diffstat (limited to 'core/componentmanager.lua')
-rw-r--r-- | core/componentmanager.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/componentmanager.lua b/core/componentmanager.lua index d7791c4b..974b5bf1 100644 --- a/core/componentmanager.lua +++ b/core/componentmanager.lua @@ -20,7 +20,8 @@ -local log = require "util.logger".init("componentmanager")
+local log = require "util.logger".init("componentmanager"); +local module_load = require "core.modulemanager".load;
local jid_split = require "util.jid".split;
local hosts = hosts;
@@ -45,7 +46,9 @@ function register_component(host, component) if not hosts[host] then
-- TODO check for host well-formedness
components[host] = component;
- hosts[host] = {type = "component", host = host, connected = true, s2sout = {} };
+ hosts[host] = { type = "component", host = host, connected = true, s2sout = {} }; + -- FIXME only load for a.b.c if b.c has dialback, and/or check in config + module_load(host, "dialback");
log("debug", "component added: "..host);
return hosts[host];
else
|