diff options
Diffstat (limited to 'modules/commands/ns_cert.cpp')
-rw-r--r-- | modules/commands/ns_cert.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/modules/commands/ns_cert.cpp b/modules/commands/ns_cert.cpp index fbd75d597..f442fe14a 100644 --- a/modules/commands/ns_cert.cpp +++ b/modules/commands/ns_cert.cpp @@ -198,6 +198,7 @@ class NSCert : public Module u->Identify(na); u->SendMessage(bi, _("SSL Fingerprint accepted. You are now identified.")); + Log(u) << "automatically identified for account " << na->nc->display << " using a valid SSL fingerprint"; return; } @@ -210,7 +211,7 @@ class NSCert : public Module if (!ircd || !ircd->certfp) throw ModuleException("Your IRCd does not support ssl client certificates"); - Implementation i[] = { I_OnUserNickChange, I_OnFingerprint }; + Implementation i[] = { I_OnFingerprint }; ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation)); ModuleManager::RegisterService(&commandnscert); @@ -220,12 +221,6 @@ class NSCert : public Module { DoAutoIdentify(u); } - - void OnUserNickChange(User *u, const Anope::string &oldnick) - { - if (!u->fingerprint.empty()) - DoAutoIdentify(u); - } }; MODULE_INIT(NSCert) |