# HG changeset patch # User Matthew Wild # Date 1661681510 -3600 # Node ID ed2a9a4c4f01104a1e7d81da12c31a954f4759e9 # Parent 96e83b4a93f7f6b2a8f05d7fdcd20a063f59aef7 mod_sasl2: Return status from event handlers Without this, clients would get "unsupported-stanza-type" even on successfully handled responses. diff -r 96e83b4a93f7 -r ed2a9a4c4f01 mod_sasl2/mod_sasl2.lua --- 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;