Software /
code /
prosody
Diff
plugins/mod_c2s.lua @ 12773:f100c1035576
mod_c2s: Include stream attributes in stream-features event
We need this to access 'from' in SASL2/FAST.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 14 Oct 2022 11:21:16 +0100 |
parent | 12677:3b9771d496ed |
child | 12804:3eef052c72d8 |
line wrap: on
line diff
--- a/plugins/mod_c2s.lua Thu Oct 13 22:46:19 2022 +0100 +++ b/plugins/mod_c2s.lua Fri Oct 14 11:21:16 2022 +0100 @@ -128,7 +128,7 @@ end local features = st.stanza("stream:features"); - hosts[session.host].events.fire_event("stream-features", { origin = session, features = features }); + hosts[session.host].events.fire_event("stream-features", { origin = session, features = features, stream = attr }); if features.tags[1] or session.full_jid then send(features); else