# HG changeset patch # User Matthew Wild # Date 1363091408 0 # Node ID 9b85976c873fa977da44f747e1facfa0d5845e13 # Parent d45316798b71f9fe2efbba32cbe78a41eb44cb46 mod_s2s: Do not include xmlns:db declaration in stream header if mod_dialback is not loaded diff -r d45316798b71 -r 9b85976c873f plugins/mod_s2s/mod_s2s.lua --- a/plugins/mod_s2s/mod_s2s.lua Mon Mar 11 21:39:15 2013 +0100 +++ b/plugins/mod_s2s/mod_s2s.lua Tue Mar 12 12:30:08 2013 +0000 @@ -249,7 +249,8 @@ if session.secure and not session.cert_chain_status then check_cert_status(session); end send(""); - send(st.stanza("stream:stream", { xmlns='jabber:server', ["xmlns:db"]='jabber:server:dialback', + send(st.stanza("stream:stream", { xmlns='jabber:server', + ["xmlns:db"]= hosts[to].modules.dialback and 'jabber:server:dialback' or nil, ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=to, to=from, version=(session.version > 0 and "1.0" or nil) }):top_tag()); if session.version >= 1.0 then local features = st.stanza("stream:features");