Software /
code /
prosody-modules
Changeset
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 |
parents | 5043:17b87fffdb91 |
children | 5045:6db64f64c8c9 |
files | mod_sasl2/mod_sasl2.lua mod_sasl2_bind2/mod_sasl2_bind2.lua |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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);
--- 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);