summaryrefslogtreecommitdiff
path: root/modules/commands/ns_cert.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/ns_cert.cpp')
-rw-r--r--modules/commands/ns_cert.cpp2
1 files changed, 1 insertions, 1 deletions
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<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;