# HG changeset patch # User Kim Alvefur # Date 1397800244 -7200 # Node ID 3c02a9ed399ea833aa4a6a2370dd94bd1d4ad0f2 # Parent d0e824a21861a86ca52dda183a771104f8cccabc util.xmppstream: Check for callback that may add stream header attributes diff -r d0e824a21861 -r 3c02a9ed399e util/xmppstream.lua --- a/util/xmppstream.lua Tue Apr 15 14:51:49 2014 -0400 +++ b/util/xmppstream.lua Fri Apr 18 07:50:44 2014 +0200 @@ -252,6 +252,9 @@ 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;