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
commite06966ee436e4d461b03aaf8691fe76dcd6d588b (patch)
treeffb8caf4394478800b0d8014bd89fbccc6233a40 /plugins/mod_component.lua
parent5d027d7f71fb0410b9c1a4ad46d94aaebb87c645 (diff)
downloadprosody-e06966ee436e4d461b03aaf8691fe76dcd6d588b.tar.gz
prosody-e06966ee436e4d461b03aaf8691fe76dcd6d588b.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)