diff options
| author | 2017-12-19 17:49:48 +0000 | |
|---|---|---|
| committer | 2017-12-19 17:49:48 +0000 | |
| commit | c4e7b532055909e303f6ddb1a6e6f2dd073fcf3e (patch) | |
| tree | 6e56dc3317edfd33afc60f84653487a2b71d3025 /src/helperfuncs.cpp | |
| parent | Only show a duration in m_chanhistory's notice if one is set. (diff) | |
Use GetMaxMask in InspIRCd::IsValidMask instead of hardcoding 250.
Diffstat (limited to 'src/helperfuncs.cpp')
| -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; |
