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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user