diff options
author | Robby- <robby@chat.be> | 2013-10-28 09:30:56 +0100 |
---|---|---|
committer | Robby- <robby@chat.be> | 2013-10-28 09:30:56 +0100 |
commit | 4a1d32c5fdc4cabdd6a26dbda70abec76b3153a0 (patch) | |
tree | 78ce75a510ee2877a0042145d0d703f97429a2fb /modules/commands | |
parent | 498da95205556995cfd81bddab3657fc294125c0 (diff) |
Fix logging when identifying with an SSL certificate fingerprint.
Diffstat (limited to 'modules/commands')
-rw-r--r-- | modules/commands/ns_cert.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/commands/ns_cert.cpp b/modules/commands/ns_cert.cpp index 09754a90d..ce7d53e51 100644 --- a/modules/commands/ns_cert.cpp +++ b/modules/commands/ns_cert.cpp @@ -334,7 +334,7 @@ class NSCert : public Module u->Identify(na); u->SendMessage(NickServ, _("SSL certificate fingerprint accepted, you are now identified.")); - Log(u) << "automatically identified for account " << na->nc->display << " via SSL certificate fingerprint"; + Log(NickServ) << u->GetMask() << " automatically identified for account " << na->nc->display << " via SSL certificate fingerprint"; } EventReturn OnNickValidate(User *u, NickAlias *na) anope_override @@ -342,9 +342,10 @@ class NSCert : public Module NSCertList *cl = certs.Get(na->nc); if (!u->fingerprint.empty() && cl && cl->FindCert(u->fingerprint)) { + BotInfo *NickServ = Config->GetClient("NickServ"); u->Identify(na); - u->SendMessage(Config->GetClient("NickServ"), _("SSL certificate fingerprint accepted, you are now identified.")); - Log(u) << "automatically identified for account " << na->nc->display << " via SSL certificate fingerprint"; + u->SendMessage(NickServ, _("SSL certificate fingerprint accepted, you are now identified.")); + Log(NickServ) << u->GetMask() << " automatically identified for account " << na->nc->display << " via SSL certificate fingerprint"; return EVENT_ALLOW; } |