Mercurial > prosody-modules
diff mod_sasl2/mod_sasl2.lua @ 5018:ed2a9a4c4f01
mod_sasl2: Return status from event handlers
Without this, clients would get "unsupported-stanza-type" even on successfully
handled responses.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 28 Aug 2022 11:11:50 +0100 |
parents | 9c7635911c56 |
children | c83ce822f105 |
line wrap: on
line diff
--- a/mod_sasl2/mod_sasl2.lua Sat Aug 27 16:36:22 2022 +0200 +++ b/mod_sasl2/mod_sasl2.lua Sun Aug 28 11:11:50 2022 +0100 @@ -65,7 +65,7 @@ end end - module:fire_event("sasl2/"..session.base_type.."/"..status, { + return module:fire_event("sasl2/"..session.base_type.."/"..status, { session = session, message = ret; error = err;