Mercurial > prosody-hg
diff plugins/mod_c2s.lua @ 11746:68faaf936f6d 0.11
mod_c2s: Indicate stream secure state in error text when no stream features to offer
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 06 Jul 2021 08:18:28 +0100 |
| parents | 1937b3c3efb5 |
| children | 9f723b54e111 |
line wrap: on
line diff
--- a/plugins/mod_c2s.lua Thu Jul 22 17:18:39 2021 +0200 +++ b/plugins/mod_c2s.lua Tue Jul 06 08:18:28 2021 +0100 @@ -108,7 +108,10 @@ send(features); else (session.log or log)("warn", "No stream features to offer"); - session:close{ condition = "undefined-condition", text = "No stream features to proceed with" }; + session:close({ + condition = "undefined-condition"; + text = "No stream features to proceed with on "..(session.secure and "" or "in").."secure stream"; + }); end end
