summaryrefslogtreecommitdiff
path: root/src/modules/m_chanfilter.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-07-23 15:17:01 +0100
committerPeter Powell <petpow@saberuk.com>2019-07-23 15:17:01 +0100
commitabdc47a61538231ad1d5e077cf2a84f414c87454 (patch)
tree0d1b9dc2951e5fb54d282b68a82e1f584dd2807a /src/modules/m_chanfilter.cpp
parent438a088b5176068c753aebe860e2d89fefe09eb4 (diff)
Add a constant for the maximum length of a mode parameter.
Diffstat (limited to 'src/modules/m_chanfilter.cpp')
-rw-r--r--src/modules/m_chanfilter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_chanfilter.cpp b/src/modules/m_chanfilter.cpp
index b2323176c..6131ab916 100644
--- a/src/modules/m_chanfilter.cpp
+++ b/src/modules/m_chanfilter.cpp
@@ -71,7 +71,7 @@ class ModuleChanFilter : public Module
{
ConfigTag* tag = ServerInstance->Config->ConfValue("chanfilter");
hidemask = tag->getBool("hidemask");
- cf.maxlen = tag->getUInt("maxlen", 35, 10, 100);
+ cf.maxlen = tag->getUInt("maxlen", 35, 10, ModeParser::MODE_PARAM_MAX);
notifyuser = tag->getBool("notifyuser", true);
cf.DoRehash();
}