Software /
code /
prosody
Diff
core/s2smanager.lua @ 1889:e875833ae08e
s2smanager: Send stream:features for incoming s2s connections which support XMPP 1.0
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 04 Oct 2009 16:38:33 +0100 |
parent | 1888:562635baad36 |
child | 1890:aed0d8a0cca8 |
line wrap: on
line diff
--- a/core/s2smanager.lua Sun Oct 04 16:34:17 2009 +0100 +++ b/core/s2smanager.lua Sun Oct 04 16:38:33 2009 +0100 @@ -27,6 +27,7 @@ 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 @@ 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