1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 13:43:14 +02:00

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.
This commit is contained in:
Robby-
2013-10-28 09:25:17 +01:00
parent bd3bed2118
commit 710d4848bd
4 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ class CommandNSCert : public Command
{
NSCertList *cl = nc->Require<NSCertList>("certificates");
if (cl->GetCertCount() >= Config->GetModule(this->owner)->Get<unsigned>("accessmax"))
if (cl->GetCertCount() >= Config->GetModule(this->owner)->Get<unsigned>("accessmax", "5"))
{
source.Reply(_("Sorry, the maximum of %d certificate entries has been reached."), Config->GetModule(this->owner)->Get<unsigned>("accessmax"));
return;