diff options
author | Sadie Powell <sadie@witchery.services> | 2025-02-20 21:35:17 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-02-20 21:35:17 +0000 |
commit | d5f4b069721fcc45c34049c47c3b3e34b4130735 (patch) | |
tree | c9126c494a284c7e1bdb1a012b32e88603724087 /modules/sasl.cpp | |
parent | ff8aca1db4b3e29d5d94f331f4c24e716755b281 (diff) |
Improve SASL log messages for post-connection authentication.
Diffstat (limited to 'modules/sasl.cpp')
-rw-r--r-- | modules/sasl.cpp | 6 |
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); |