From abdc47a61538231ad1d5e077cf2a84f414c87454 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 23 Jul 2019 15:17:01 +0100 Subject: Add a constant for the maximum length of a mode parameter. --- src/modules/m_chanfilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_chanfilter.cpp') 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(); } -- cgit v1.2.3