Changeset

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
parents 12772:daa654dbd8de
children 12774:fc4adc32a537
files plugins/mod_c2s.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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