From bb39d78be61e45555cdd87985e26ea07b725fabf Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 9 Apr 2020 15:18:04 +0100 Subject: Set the minimum length to 1 for most config items with a default. --- src/modules/m_randquote.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_randquote.cpp') diff --git a/src/modules/m_randquote.cpp b/src/modules/m_randquote.cpp index fada120ad..184b06f8b 100644 --- a/src/modules/m_randquote.cpp +++ b/src/modules/m_randquote.cpp @@ -37,7 +37,7 @@ class ModuleRandQuote : public Module ConfigTag* conf = ServerInstance->Config->ConfValue("randquote"); prefix = conf->getString("prefix"); suffix = conf->getString("suffix"); - FileReader reader(conf->getString("file", "quotes")); + FileReader reader(conf->getString("file", "quotes", 1)); quotes = reader.GetVector(); } -- cgit v1.3.1-10-gc9f91