Diff

mod_sasl2_bind2/mod_sasl2_bind2.lua @ 5044:f64d834ba744

mod_sasl2, mod_sasl2_bind2: rename event.session -> .origin for consistency
author Matthew Wild <mwild1@gmail.com>
date Wed, 21 Sep 2022 10:32:45 +0100
parent 5043:17b87fffdb91
child 5045:6db64f64c8c9
line wrap: on
line diff
--- a/mod_sasl2_bind2/mod_sasl2_bind2.lua	Wed Sep 21 10:31:50 2022 +0100
+++ b/mod_sasl2_bind2/mod_sasl2_bind2.lua	Wed Sep 21 10:32:45 2022 +0100
@@ -12,7 +12,7 @@
 module:hook("advertise-sasl-features", function(event)
 	local bind = st.stanza("bind", { xmlns = xmlns_bind2 });
 	local inline = st.stanza("inline");
-	module:fire_event("advertise-bind-features", { origin = event.session, features = inline });
+	module:fire_event("advertise-bind-features", { origin = event.origin, features = inline });
 	bind:add_direct_child(inline);
 
 	event.features:add_direct_child(bind);