]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Use GetMaxMask in InspIRCd::IsValidMask instead of hardcoding 250.
authorPeter Powell <petpow@saberuk.com>
Tue, 19 Dec 2017 17:49:48 +0000 (17:49 +0000)
committerPeter Powell <petpow@saberuk.com>
Tue, 19 Dec 2017 17:49:48 +0000 (17:49 +0000)
src/helperfuncs.cpp

index b80a3897c49abc12fc82f57be648bb14f07875ed..c29e7d2cc65e6d7bfd28897a2be68b2f4a23640c 100644 (file)
@@ -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;