# HG changeset patch # User Matthew Wild # Date 1665742876 -3600 # Node ID f100c10355764dc17a616c5f137a6c0716c747ac # Parent daa654dbd8deda68d850eee495dcb95651fe8fe3 mod_c2s: Include stream attributes in stream-features event We need this to access 'from' in SASL2/FAST. diff -r daa654dbd8de -r f100c1035576 plugins/mod_c2s.lua --- 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