# HG changeset patch # User Matthew Wild # Date 1226548100 0 # Node ID 09a80c8b2d7309bcd3d9a8d30d17cc7a6b50a155 # Parent f15afbcbc55cf52dfcf7e8a15e65bb853241f0f5 Change sending reply stream header to use top_tag() diff -r f15afbcbc55c -r 09a80c8b2d73 core/s2smanager.lua --- a/core/s2smanager.lua Thu Nov 13 03:47:44 2008 +0000 +++ b/core/s2smanager.lua Thu Nov 13 03:48:20 2008 +0000 @@ -133,7 +133,7 @@ session.streamid = uuid_gen(); print(session, session.from_host, "incoming s2s stream opened"); send(""); - send(format("", session.streamid, session.to_host)); + send(stanza("stream:stream", { xmlns='jabber:server', ["xmlns:db"]='jabber:server:dialback', ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host })); elseif session.direction == "outgoing" then -- If we are just using the connection for verifying dialback keys, we won't try and auth it if not attr.id then error("stream response did not give us a streamid!!!"); end