Software /
code /
prosody
Changeset
6084:3c02a9ed399e
util.xmppstream: Check for callback that may add stream header attributes
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 18 Apr 2014 07:50:44 +0200 |
parents | 6082:d0e824a21861 |
children | 6085:2f911644f527 |
files | util/xmppstream.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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("<?xml version='1.0'?>"); send(st.stanza("stream:stream", attr):top_tag()); return true;