From 0c1de192aba22db364e9eb3e0e9aadf5f63b3828 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 18 Apr 2014 07:50:44 +0200 Subject: util.xmppstream: Check for callback that may add stream header attributes --- util/xmppstream.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util') 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(""); send(st.stanza("stream:stream", attr):top_tag()); return true; -- cgit v1.2.3