mod_c2s: Include stream attributes in stream-features event
authorMatthew Wild <mwild1@gmail.com>
Fri, 14 Oct 2022 11:21:16 +0100
changeset 12777 f100c1035576
parent 12776 daa654dbd8de
child 12778 fc4adc32a537
mod_c2s: Include stream attributes in stream-features event We need this to access 'from' in SASL2/FAST.
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