aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_c2s.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-04-19 13:04:12 +0200
committerKim Alvefur <zash@zash.se>2020-04-19 13:04:12 +0200
commita63e5be1b71a74d78c5d95288c759d70d971f729 (patch)
tree03ee865487f8c8a6b578122908eb2071140ea416 /plugins/mod_c2s.lua
parent25685a3d1bf426a1f93fffaaf3d847b7e68bc9e9 (diff)
downloadprosody-a63e5be1b71a74d78c5d95288c759d70d971f729.tar.gz
prosody-a63e5be1b71a74d78c5d95288c759d70d971f729.zip
mod_c2s: Swap comments
Diffstat (limited to 'plugins/mod_c2s.lua')
-rw-r--r--plugins/mod_c2s.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua
index aecf2210..536b945e 100644
--- a/plugins/mod_c2s.lua
+++ b/plugins/mod_c2s.lua
@@ -111,10 +111,10 @@ function stream_callbacks.streamopened(session, attr)
send(features);
else
if session.secure then
- -- Normally STARTTLS would be offered
+ -- Here SASL should be offered
(session.log or log)("warn", "No stream features to offer on secure session. Check authentication settings.");
else
- -- Here SASL should be offered
+ -- Normally STARTTLS would be offered
(session.log or log)("warn", "No stream features to offer on insecure session. Check encryption and security settings.");
end
session:close{ condition = "undefined-condition", text = "No stream features to proceed with" };