diff options
author | Peter Powell <petpow@saberuk.com> | 2017-12-19 17:49:48 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-12-19 17:49:48 +0000 |
commit | c4e7b532055909e303f6ddb1a6e6f2dd073fcf3e (patch) | |
tree | 6e56dc3317edfd33afc60f84653487a2b71d3025 /src | |
parent | 5f40dce0345e9fa39b3e00c34d550ea6cd202e8e (diff) |
Use GetMaxMask in InspIRCd::IsValidMask instead of hardcoding 250.
Diffstat (limited to 'src')
-rw-r--r-- | src/helperfuncs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |