aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_anticaps.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_anticaps.cpp
parentAllow <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_anticaps.cpp')
-rw-r--r--src/modules/m_anticaps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_anticaps.cpp b/src/modules/m_anticaps.cpp
index 83fa0ecaa..da023521e 100644
--- a/src/modules/m_anticaps.cpp
+++ b/src/modules/m_anticaps.cpp
@@ -190,7 +190,7 @@ class ModuleAntiCaps : public Module
ConfigTag* tag = ServerInstance->Config->ConfValue("anticaps");
uppercase.reset();
- const std::string upper = tag->getString("uppercase", "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
+ const std::string upper = tag->getString("uppercase", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 1);
for (std::string::const_iterator iter = upper.begin(); iter != upper.end(); ++iter)
uppercase.set(static_cast<unsigned char>(*iter));