1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 00:16:39 +02:00

added some log message for automatic fingerprint identify and removed a unused function from ns_cert

This commit is contained in:
DukePyrolator
2011-08-19 09:07:19 +02:00
parent 1b02216f2d
commit abdc69aa94
2 changed files with 3 additions and 7 deletions
+2 -7
View File
@@ -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)
+1
View File
@@ -37,6 +37,7 @@ class MyNickServService : public NickServService
if (!u->IsIdentified() && !u->fingerprint.empty() && na->nc->FindCert(u->fingerprint))
{
u->SendMessage(NickServ, _("SSL Fingerprint accepted, you are now identified."));
Log(u) << "automatically identified for account " << na->nc->display << " using a valid SSL fingerprint.";
u->Identify(na);
return;
}