From fdf61a38cfa273c4781dbe578647638106cb7b52 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 14 Oct 2022 11:21:16 +0100 Subject: mod_c2s: Include stream attributes in stream-features event We need this to access 'from' in SASL2/FAST. --- plugins/mod_c2s.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua index 2d4186d0..c5a9b42a 100644 --- a/plugins/mod_c2s.lua +++ b/plugins/mod_c2s.lua @@ -128,7 +128,7 @@ function stream_callbacks._streamopened(session, attr) 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 -- cgit v1.2.3