Software /
code /
prosody
Diff
util/xmppstream.lua @ 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 |
parent | 6063:e626ee2fe106 |
child | 6355:c2d144d3f8dd |
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;