diff options
author | Kim Alvefur <zash@zash.se> | 2014-04-18 07:50:44 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-04-18 07:50:44 +0200 |
commit | 0c1de192aba22db364e9eb3e0e9aadf5f63b3828 (patch) | |
tree | 143b6e5599ccb646d06801efba0cc0e4e3e0b7fa /util | |
parent | 0f866905fd96f816b383457792f484f403709453 (diff) | |
download | prosody-0c1de192aba22db364e9eb3e0e9aadf5f63b3828.tar.gz prosody-0c1de192aba22db364e9eb3e0e9aadf5f63b3828.zip |
util.xmppstream: Check for callback that may add stream header attributes
Diffstat (limited to 'util')
-rw-r--r-- | util/xmppstream.lua | 3 |
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; |