diff options
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); |