aboutsummaryrefslogtreecommitdiffstats
path: root/util/xmppstream.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-04-20 23:39:45 +0200
committerKim Alvefur <zash@zash.se>2014-04-20 23:39:45 +0200
commit5c9b1e7c12e66e518237b17f26629b7da6198a4c (patch)
tree98ca74d989832843edfb586f3e4c72d65ebd6819 /util/xmppstream.lua
parent84a60172446e16818f990a3066d38fc08acbc27c (diff)
parentaa3344731d2636073d39c3a2641d02813bd29019 (diff)
downloadprosody-5c9b1e7c12e66e518237b17f26629b7da6198a4c.tar.gz
prosody-5c9b1e7c12e66e518237b17f26629b7da6198a4c.zip
Merge 0.10->trunk
Diffstat (limited to 'util/xmppstream.lua')
-rw-r--r--util/xmppstream.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/xmppstream.lua b/util/xmppstream.lua
index 1e65919b..6982aae3 100644
--- a/util/xmppstream.lua
+++ b/util/xmppstream.lua
@@ -252,6 +252,9 @@ function new(session, stream_callbacks, stanza_size_limit)
id = session.streamid or "",
from = from or session.host, to = to,
};
+ if session.stream_attrs then
+ session:stream_attrs(from, to, attr)
+ end
send("<?xml version='1.0'?>");
send(st.stanza("stream:stream", attr):top_tag());
return true;