Comparison

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
comparison
equal deleted inserted replaced
5043:17b87fffdb91 5044:f64d834ba744
10 -- Advertise what we can do 10 -- Advertise what we can do
11 11
12 module:hook("advertise-sasl-features", function(event) 12 module:hook("advertise-sasl-features", function(event)
13 local bind = st.stanza("bind", { xmlns = xmlns_bind2 }); 13 local bind = st.stanza("bind", { xmlns = xmlns_bind2 });
14 local inline = st.stanza("inline"); 14 local inline = st.stanza("inline");
15 module:fire_event("advertise-bind-features", { origin = event.session, features = inline }); 15 module:fire_event("advertise-bind-features", { origin = event.origin, features = inline });
16 bind:add_direct_child(inline); 16 bind:add_direct_child(inline);
17 17
18 event.features:add_direct_child(bind); 18 event.features:add_direct_child(bind);
19 end, 1); 19 end, 1);
20 20