X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fconfigreader.h;h=f2ba16902293cf9a32b1057062c2ccb2da8162a9;hb=c528328748444fa0f0cff1a0377a7a6b9e557905;hp=fe1e5da9eb066edec6fc68c2487cff82d60ae864;hpb=0b63ccd0b5cb26883d6becb196fb98e4f95d0397;p=user%2Fhenk%2Fcode%2Finspircd.git 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