aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_component.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-04-10 13:13:07 +0200
committerKim Alvefur <zash@zash.se>2014-04-10 13:13:07 +0200
commit038d77554396739a50af3a3519c053d0b2b2276e (patch)
treeffb8caf4394478800b0d8014bd89fbccc6233a40 /plugins/mod_component.lua
parent1780d1f59008f46b7423eb67c6063640230f9ba1 (diff)
downloadprosody-038d77554396739a50af3a3519c053d0b2b2276e.tar.gz
prosody-038d77554396739a50af3a3519c053d0b2b2276e.zip
mod_c2s, mod_s2s, mod_component, util.xmppstream: Move all session:open_stream() functions to util.xmppstream
Diffstat (limited to 'plugins/mod_component.lua')
-rw-r--r--plugins/mod_component.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua
index 1497b12f..297609d8 100644
--- a/plugins/mod_component.lua
+++ b/plugins/mod_component.lua
@@ -177,9 +177,7 @@ function stream_callbacks.streamopened(session, attr)
session.streamid = uuid_gen();
session.notopen = nil;
-- Return stream header
- session.send("<?xml version='1.0'?>");
- session.send(st.stanza("stream:stream", { xmlns=xmlns_component,
- ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.host }):top_tag());
+ session:open_stream();
end
function stream_callbacks.streamclosed(session)