diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-10-04 16:38:33 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-10-04 16:38:33 +0100 |
commit | ae0f4f94aa8707f803cc31395187d84853c33b68 (patch) | |
tree | dec8147508a8dca7cf318fe867ece1c8795431a7 /core/s2smanager.lua | |
parent | 4ad88a506eeb92871642c52c7e8dc7fa9c74f0d7 (diff) | |
download | prosody-ae0f4f94aa8707f803cc31395187d84853c33b68.tar.gz prosody-ae0f4f94aa8707f803cc31395187d84853c33b68.zip |
s2smanager: Send stream:features for incoming s2s connections which support XMPP 1.0
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r-- | core/s2smanager.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 6210faec..78f9ed9c 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -27,6 +27,7 @@ local st = require "stanza"; local stanza = st.stanza; local nameprep = require "util.encodings".stringprep.nameprep; +local fire_event = require "core.eventmanager".fire_event; local uuid_gen = require "util.uuid".generate; local logger_init = require "util.logger".init; @@ -358,8 +359,11 @@ function streamopened(session, attr) return; end if session.version >= 1.0 then - send(st.stanza("stream:features") - :tag("dialback", { xmlns='urn:xmpp:features:dialback' }):tag("optional"):up():up()); + local features = st.stanza("stream:features"); + fire_event("s2s-stream-features", session, features); + + log("debug", "Sending stream features: %s", tostring(features)); + send(features); end elseif session.direction == "outgoing" then -- If we are just using the connection for verifying dialback keys, we won't try and auth it |