From c4e7b532055909e303f6ddb1a6e6f2dd073fcf3e Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 19 Dec 2017 17:49:48 +0000 Subject: [PATCH] Use GetMaxMask in InspIRCd::IsValidMask instead of hardcoding 250. --- src/helperfuncs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index b80a3897c..c29e7d2cc 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -101,7 +101,7 @@ bool InspIRCd::IsValidMask(const std::string &mask) if (exclamation != 1 || atsign != 1) return false; - if (mask.length() > 250) + if (mask.length() > ServerInstance->Config->Limits.GetMaxMask()) return false; return true; -- 2.39.5