Software /
code /
prosody-modules
Diff
mod_sasl2/mod_sasl2.lua @ 5028:1f2d2bfd29dd
mod_sasl2: Add event for other modules to advertise inline features
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 02 Sep 2022 16:20:13 +0100 |
parent | 5025:fd154db7c8fc |
child | 5038:88980b2dd986 |
line wrap: on
line diff
--- a/mod_sasl2/mod_sasl2.lua Mon Aug 29 17:41:16 2022 +0100 +++ b/mod_sasl2/mod_sasl2.lua Fri Sep 02 16:20:13 2022 +0100 @@ -54,6 +54,10 @@ end features:add_direct_child(mechanisms); + + local inline = st.stanza("inline", { xmlns = xmlns_sasl2 }); + module:fire_event("advertise-sasl-features", { session = origin, features = inline }); + features:add_direct_child(inline); end, 1); local function handle_status(session, status, ret, err_msg)