# HG changeset patch # User Matthew Wild # Date 1663752765 -3600 # Node ID f64d834ba744b9d4d88049d20f47b2a91d74400c # Parent 17b87fffdb917a8bc9d9254576c49452d3b2fa39 mod_sasl2, mod_sasl2_bind2: rename event.session -> .origin for consistency diff -r 17b87fffdb91 -r f64d834ba744 mod_sasl2/mod_sasl2.lua --- a/mod_sasl2/mod_sasl2.lua Wed Sep 21 10:31:50 2022 +0100 +++ b/mod_sasl2/mod_sasl2.lua Wed Sep 21 10:32:45 2022 +0100 @@ -95,7 +95,7 @@ features:add_direct_child(mechanisms); local inline = st.stanza("inline"); - module:fire_event("advertise-sasl-features", { session = origin, features = inline }); + module:fire_event("advertise-sasl-features", { origin = origin, features = inline }); mechanisms:add_direct_child(inline); end, 1); diff -r 17b87fffdb91 -r f64d834ba744 mod_sasl2_bind2/mod_sasl2_bind2.lua --- 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);