diff options
| author | 2020-04-09 15:18:04 +0100 | |
|---|---|---|
| committer | 2020-04-09 15:18:04 +0100 | |
| commit | bb39d78be61e45555cdd87985e26ea07b725fabf (patch) | |
| tree | 157dc8144dca9d65eec162773fe3f845e6a5582f /src/modules/m_randquote.cpp | |
| parent | Allow <passforward:forwardmsg> to be optional. (diff) | |
Set the minimum length to 1 for most config items with a default.
Diffstat (limited to 'src/modules/m_randquote.cpp')
| -rw-r--r-- | src/modules/m_randquote.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |
