aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2019-06-01 15:00:35 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2019-06-01 15:00:35 +0200
commit331336cd83ae38f8f963abd61951912127a3c250 (patch)
tree995b70671f7cd6170a9fc0d16a72b22e9e36bc55
parentb6b8c443ca10aea6aae5f8bb0596b8b4a9030f42 (diff)
downloadprosody-331336cd83ae38f8f963abd61951912127a3c250.tar.gz
prosody-331336cd83ae38f8f963abd61951912127a3c250.zip
core/sessionmanager: Remove unnecessary fallback in make_authenticated
-rw-r--r--core/sessionmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index f5af1185..55f096b9 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -129,7 +129,7 @@ local function make_authenticated(session, username)
if session.type == "c2s_unauthed" then
session.type = "c2s_unbound";
end
- session.log("info", "Authenticated as %s@%s", username or "(unknown)", session.host or "(unknown)");
+ session.log("info", "Authenticated as %s@%s", username, session.host or "(unknown)");
return true;
end