Software /
code /
prosody
Diff
plugins/mod_component.lua @ 6063:e626ee2fe106
mod_c2s, mod_s2s, mod_component, util.xmppstream: Move all session:open_stream() functions to util.xmppstream
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 10 Apr 2014 13:13:07 +0200 |
parent | 5954:6dc73be95213 |
child | 6382:57d23c26039b |
line wrap: on
line diff
--- a/plugins/mod_component.lua Thu Apr 10 00:24:29 2014 +0200 +++ b/plugins/mod_component.lua Thu Apr 10 13:13:07 2014 +0200 @@ -177,9 +177,7 @@ 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)