1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 00:23:11 +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
@@ -28,7 +28,7 @@ class CommandNSAccess : public Command
return;
}
if (nc->access.size() >= Config->GetModule(this->owner)->Get<unsigned>("accessmax"))
if (nc->access.size() >= Config->GetModule(this->owner)->Get<unsigned>("accessmax", "32"))
{
source.Reply(_("Sorry, the maximum of %d access entries has been reached."), Config->GetModule(this->owner)->Get<unsigned>("accessmax"));
return;