diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-11-13 03:48:20 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-11-13 03:48:20 +0000 |
commit | a37d7db54f875e07c1bcc813265aaf112130b313 (patch) | |
tree | 6557016b4d35c0e8db1699b58d651047a6b46a75 | |
parent | 6bb0a34965cfb0f57f3e2a19ba8f4584f1e799ed (diff) | |
download | prosody-a37d7db54f875e07c1bcc813265aaf112130b313.tar.gz prosody-a37d7db54f875e07c1bcc813265aaf112130b313.zip |
Change sending reply stream header to use top_tag()
-rw-r--r-- | core/s2smanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 1cfba592..8a6d5b45 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -133,7 +133,7 @@ function streamopened(session, attr) session.streamid = uuid_gen(); print(session, session.from_host, "incoming s2s stream opened"); send("<?xml version='1.0'?>"); - send(format("<stream:stream xmlns='jabber:server' xmlns:db='jabber:server:dialback' xmlns:stream='http://etherx.jabber.org/streams' id='%s' from='%s'>", 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 |