summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2016-07-22 11:26:11 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-07-22 12:26:11 +0200
commit4a12fc9d4bfb77fc2fc05c1052c66294e3774649 (patch)
treec24b738956fb7673c5703745b2775f4dc61e4277 /include
parenta46d0c010d92a84574f175fc490538db93e7e860 (diff)
Add a method which calculates the maximum mask length. (#1171)
Diffstat (limited to 'include')
-rw-r--r--include/configreader.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/configreader.h b/include/configreader.h
index fe1e5da9e..f2ba16902 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -121,6 +121,9 @@ class ServerLimits
* @param tag Configuration tag to read the limits from
*/
ServerLimits(ConfigTag* tag);
+
+ /** Maximum length of a n!u@h mask */
+ size_t GetMaxMask() const { return NickMax + 1 + IdentMax + 1 + MaxHost; }
};
struct CommandLineConf