Change the maximum nick/user size to match other implementations.

This commit is contained in:
Peter Powell 2017-07-14 20:38:30 +01:00
parent a012cf0aa8
commit 56fe5d6f2f
2 changed files with 4 additions and 4 deletions

View File

@ -757,7 +757,7 @@
<limits
# maxnick: Maximum length of a nickname.
maxnick="31"
maxnick="30"
# maxchan: Maximum length of a channel name.
maxchan="64"
@ -766,7 +766,7 @@
maxmodes="20"
# maxident: Maximum length of a ident/username.
maxident="11"
maxident="10"
# maxhost: Maximum length of a hostname.
maxhost="64"

View File

@ -30,10 +30,10 @@
#include <iostream>
ServerLimits::ServerLimits(ConfigTag* tag)
: NickMax(tag->getInt("maxnick", 32))
: NickMax(tag->getInt("maxnick", 30))
, ChanMax(tag->getInt("maxchan", 64))
, MaxModes(tag->getInt("maxmodes", 20))
, IdentMax(tag->getInt("maxident", 11))
, IdentMax(tag->getInt("maxident", 10))
, MaxQuit(tag->getInt("maxquit", 255))
, MaxTopic(tag->getInt("maxtopic", 307))
, MaxKick(tag->getInt("maxkick", 255))