diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2011-08-19 09:07:19 +0200 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2011-08-19 09:07:19 +0200 |
commit | abdc69aa94adcd893ccff1f6c148b159c1de9718 (patch) | |
tree | c5578046a9af74990f11e22a536464a45f0c44d6 /modules/commands/ns_cert.cpp | |
parent | 1b02216f2d1b9ad05979e89f565bbebd29b7c1b8 (diff) |
added some log message for automatic fingerprint identify and removed a unused function from ns_cert
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) |