Software /
code /
prosody-modules
Comparison
mod_sasl2/mod_sasl2.lua @ 5067:54c6b4595f86
mod_sasl2: Forward stream attributes into sub-event
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 14 Oct 2022 15:43:22 +0100 |
parent | 5063:53145c6b6b0b |
child | 5088:e9cf361982d5 |
comparison
equal
deleted
inserted
replaced
5066:74145faceba2 | 5067:54c6b4595f86 |
---|---|
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", { origin = origin, features = inline }); | 98 module:fire_event("advertise-sasl-features", { origin = origin, features = inline, stream = event.stream }); |
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; |