Software / code / prosody
Diff
plugins/mod_bosh.lua @ 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 |
| parent | 13213:50324f66ca2a |
| child | 13460:a688947fab1e |
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