Software /
code /
prosody-modules
Comparison
mod_sasl2/mod_sasl2.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 | 5042:166fd192f39c |
child | 5048:3697d19d5fd9 |
comparison
equal
deleted
inserted
replaced
5043:17b87fffdb91 | 5044:f64d834ba744 |
---|---|
93 end | 93 end |
94 | 94 |
95 features:add_direct_child(mechanisms); | 95 features:add_direct_child(mechanisms); |
96 | 96 |
97 local inline = st.stanza("inline"); | 97 local inline = st.stanza("inline"); |
98 module:fire_event("advertise-sasl-features", { session = origin, features = inline }); | 98 module:fire_event("advertise-sasl-features", { origin = origin, features = inline }); |
99 mechanisms:add_direct_child(inline); | 99 mechanisms:add_direct_child(inline); |
100 end, 1); | 100 end, 1); |
101 | 101 |
102 local function handle_status(session, status, ret, err_msg) | 102 local function handle_status(session, status, ret, err_msg) |
103 local err = nil; | 103 local err = nil; |