diff options
author | Peter Powell <petpow@saberuk.com> | 2017-07-14 20:38:30 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-08-13 16:27:29 +0100 |
commit | 56fe5d6f2fb4097a9d83f1d4b60fc2ddc2051844 (patch) | |
tree | 16841b537305998625687f14d27fa0d00ffe3ca2 | |
parent | a012cf0aa8227b4bc4ce23b8b07eede904ac1afd (diff) |
Change the maximum nick/user size to match other implementations.
-rw-r--r-- | docs/conf/inspircd.conf.example | 4 | ||||
-rw-r--r-- | src/configreader.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/conf/inspircd.conf.example b/docs/conf/inspircd.conf.example index 2d22f3160..fd12fc08a 100644 --- a/docs/conf/inspircd.conf.example +++ b/docs/conf/inspircd.conf.example @@ -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" diff --git a/src/configreader.cpp b/src/configreader.cpp index d29ad8cef..0aedb874d 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -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)) |