Software /
code /
prosody
Changeset
610:d98106902f74
Enable dialback for components
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 09 Dec 2008 05:22:43 +0500 |
parents | 609:64849cfa9869 |
children | 611:7bb91fcddaf8 626:cf1d26fd4d6f |
files | core/componentmanager.lua |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core/componentmanager.lua Mon Dec 08 21:08:22 2008 +0500 +++ b/core/componentmanager.lua Tue Dec 09 05:22:43 2008 +0500 @@ -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 @@ 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