From 710d4848bd7c42fbd203d976aadd7044fdc6d8c7 Mon Sep 17 00:00:00 2001 From: Robby- Date: Mon, 28 Oct 2013 09:25:17 +0100 Subject: Fix kill and killquick default expiry times. ns_access and ns_cert: Fix accessmax defaults, also state in the config that 0 is not a valid value. --- modules/commands/ns_cert.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/commands/ns_cert.cpp') diff --git a/modules/commands/ns_cert.cpp b/modules/commands/ns_cert.cpp index 6b3aa2a14..09754a90d 100644 --- a/modules/commands/ns_cert.cpp +++ b/modules/commands/ns_cert.cpp @@ -138,7 +138,7 @@ class CommandNSCert : public Command { NSCertList *cl = nc->Require("certificates"); - if (cl->GetCertCount() >= Config->GetModule(this->owner)->Get("accessmax")) + if (cl->GetCertCount() >= Config->GetModule(this->owner)->Get("accessmax", "5")) { source.Reply(_("Sorry, the maximum of %d certificate entries has been reached."), Config->GetModule(this->owner)->Get("accessmax")); return; -- cgit From 4a1d32c5fdc4cabdd6a26dbda70abec76b3153a0 Mon Sep 17 00:00:00 2001 From: Robby- Date: Mon, 28 Oct 2013 09:30:56 +0100 Subject: Fix logging when identifying with an SSL certificate fingerprint. --- modules/commands/ns_cert.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modules/commands/ns_cert.cpp') 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; } -- cgit