Software /
code /
prosody
Comparison
plugins/mod_s2s/mod_s2s.lua @ 5345:9b85976c873f
mod_s2s: Do not include xmlns:db declaration in stream header if mod_dialback is not loaded
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 12 Mar 2013 12:30:08 +0000 |
parent | 5344:d45316798b71 |
child | 5351:901ed253bbf7 |
comparison
equal
deleted
inserted
replaced
5344:d45316798b71 | 5345:9b85976c873f |
---|---|
247 end | 247 end |
248 | 248 |
249 if session.secure and not session.cert_chain_status then check_cert_status(session); end | 249 if session.secure and not session.cert_chain_status then check_cert_status(session); end |
250 | 250 |
251 send("<?xml version='1.0'?>"); | 251 send("<?xml version='1.0'?>"); |
252 send(st.stanza("stream:stream", { xmlns='jabber:server', ["xmlns:db"]='jabber:server:dialback', | 252 send(st.stanza("stream:stream", { xmlns='jabber:server', |
253 ["xmlns:db"]= hosts[to].modules.dialback and 'jabber:server:dialback' or nil, | |
253 ["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()); | 254 ["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()); |
254 if session.version >= 1.0 then | 255 if session.version >= 1.0 then |
255 local features = st.stanza("stream:features"); | 256 local features = st.stanza("stream:features"); |
256 | 257 |
257 if to then | 258 if to then |