Diff

mod_sasl2/mod_sasl2.lua @ 5067:54c6b4595f86

mod_sasl2: Forward stream attributes into sub-event
author Matthew Wild <mwild1@gmail.com>
date Fri, 14 Oct 2022 15:43:22 +0100
parent 5063:53145c6b6b0b
child 5088:e9cf361982d5
line wrap: on
line diff
--- a/mod_sasl2/mod_sasl2.lua	Fri Oct 14 14:44:27 2022 +0100
+++ b/mod_sasl2/mod_sasl2.lua	Fri Oct 14 15:43:22 2022 +0100
@@ -95,7 +95,7 @@
 	features:add_direct_child(mechanisms);
 
 	local inline = st.stanza("inline");
-	module:fire_event("advertise-sasl-features", { origin = origin, features = inline });
+	module:fire_event("advertise-sasl-features", { origin = origin, features = inline, stream = event.stream });
 	mechanisms:add_direct_child(inline);
 end, 1);