aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_component.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-04-10 13:16:54 +0200
committerKim Alvefur <zash@zash.se>2014-04-10 13:16:54 +0200
commit87020b4789013b1d8ff33d7929d455392b1d9638 (patch)
tree521b9634144ac84ea608dbe47a15a0bcd1951695 /plugins/mod_component.lua
parent35ef31bd9b827f325f17180dfa77a66578df0983 (diff)
parentae8a4fb909a0cce10a12e9ced65e45ef2d1495fa (diff)
downloadprosody-87020b4789013b1d8ff33d7929d455392b1d9638.tar.gz
prosody-87020b4789013b1d8ff33d7929d455392b1d9638.zip
Merge 0.10->trunk
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)