From c853673b793874e34072e32ed7ebc24eec7b3051 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 10 Oct 2022 07:57:33 +0100 Subject: Prevent having the dccallow module loaded with a zero list size. This doesn't make sense. --- src/modules/m_dccallow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_dccallow.cpp') diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 937278768..60f4c878f 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -599,7 +599,7 @@ class ModuleDCCAllow : public Module bfl.swap(newbfl); ConfigTag* tag = ServerInstance->Config->ConfValue("dccallow"); - cmd.ext.maxentries = tag->getUInt("maxentries", 20); + cmd.ext.maxentries = tag->getUInt("maxentries", 20, 1); cmd.defaultlength = tag->getDuration("length", 0); blockchat = tag->getBool("blockchat"); defaultaction = tag->getString("action"); -- cgit v1.3.1-10-gc9f91