summaryrefslogtreecommitdiff
path: root/modules/sasl.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-02-20 21:35:17 +0000
committerSadie Powell <sadie@witchery.services>2025-02-20 21:35:17 +0000
commitd5f4b069721fcc45c34049c47c3b3e34b4130735 (patch)
treec9126c494a284c7e1bdb1a012b32e88603724087 /modules/sasl.cpp
parentff8aca1db4b3e29d5d94f331f4c24e716755b281 (diff)
Improve SASL log messages for post-connection authentication.
Diffstat (limited to 'modules/sasl.cpp')
-rw-r--r--modules/sasl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/sasl.cpp b/modules/sasl.cpp
index 45196bc06..29ac75883 100644
--- a/modules/sasl.cpp
+++ b/modules/sasl.cpp
@@ -99,10 +99,12 @@ public:
return false;
Anope::string user = "A user";
- if (!mysess->hostname.empty() && !mysess->ip.empty())
+ auto *u = User::Find(sess->uid);
+ if (u)
+ user = u->GetMask();
+ else if (!mysess->hostname.empty() && !mysess->ip.empty())
user = mysess->hostname + " (" + mysess->ip + ")";
-
for (auto it = mysess->certs.begin(); it != mysess->certs.end(); ++it)
{
auto *nc = certs->FindAccountFromCert(*it);