summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-12-19 17:49:48 +0000
committerPeter Powell <petpow@saberuk.com>2017-12-19 17:49:48 +0000
commitc4e7b532055909e303f6ddb1a6e6f2dd073fcf3e (patch)
tree6e56dc3317edfd33afc60f84653487a2b71d3025 /src/helperfuncs.cpp
parent5f40dce0345e9fa39b3e00c34d550ea6cd202e8e (diff)
Use GetMaxMask in InspIRCd::IsValidMask instead of hardcoding 250.
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp2
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;