aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_opermotd.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-04-09 15:18:04 +0100
committerGravatar Sadie Powell2020-04-09 15:18:04 +0100
commitbb39d78be61e45555cdd87985e26ea07b725fabf (patch)
tree157dc8144dca9d65eec162773fe3f845e6a5582f /src/modules/m_opermotd.cpp
parentAllow <passforward:forwardmsg> to be optional. (diff)
downloadinspircd++-bb39d78be61e45555cdd87985e26ea07b725fabf.tar.gz
inspircd++-bb39d78be61e45555cdd87985e26ea07b725fabf.tar.bz2
inspircd++-bb39d78be61e45555cdd87985e26ea07b725fabf.zip
Set the minimum length to 1 for most config items with a default.
Diffstat (limited to 'src/modules/m_opermotd.cpp')
-rw-r--r--src/modules/m_opermotd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp
index 36998a4b3..585b651b6 100644
--- a/src/modules/m_opermotd.cpp
+++ b/src/modules/m_opermotd.cpp
@@ -114,7 +114,7 @@ class ModuleOpermotd : public Module
try
{
- FileReader reader(conf->getString("file", "opermotd"));
+ FileReader reader(conf->getString("file", "opermotd", 1));
cmd.opermotd = reader.GetVector();
InspIRCd::ProcessColors(cmd.opermotd);
}