Software /
code /
prosody
Changeset
13293:ad1ed84fdf13
mod_bosh: Include stream attributes in stream-features event
This matches what mod_c2s does, and fixes a traceback in mod_sasl2_fast when
used with BOSH (that module tries to use event.stream.from).
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 28 Oct 2023 13:15:56 +0100 |
parents | 13292:8fbdd878fcf6 |
children | 13294:4a05fbda927f |
files | plugins/mod_bosh.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Fri Oct 27 22:38:00 2023 +0200 +++ b/plugins/mod_bosh.lua Sat Oct 28 13:15:56 2023 +0100 @@ -456,7 +456,7 @@ if session.notopen then local features = st.stanza("stream:features"); - module:context(session.host):fire_event("stream-features", { origin = session, features = features }); + module:context(session.host):fire_event("stream-features", { origin = session, features = features, stream = attr }); session.send(features); session.notopen = nil; end