From: Peter Powell Date: Thu, 14 Sep 2017 13:14:53 +0000 (+0100) Subject: Raise the default listmode limit to 100 from 64. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=21f2f56e98625fe640f8045737335d8ebdf879b7;p=user%2Fhenk%2Fcode%2Finspircd.git Raise the default listmode limit to 100 from 64. 64 is a rather restrictive limit especially considering how fast channels can accumulate bans. In fact, #InspIRCd hit the ban limit in just over a year. Having a low limit might have made sense when memory was expensive but the average IRC server should be able to handle this fine now. --- diff --git a/docs/conf/inspircd.conf.example b/docs/conf/inspircd.conf.example index 136346f7c..c90cf5755 100644 --- a/docs/conf/inspircd.conf.example +++ b/docs/conf/inspircd.conf.example @@ -493,11 +493,11 @@ # matches the channels name applies the banlimit to that channel. # # It is advisable to put an entry with the channel as '*' at the # # bottom of the list. If none are specified or no maxbans tag is # -# matched, the banlist size defaults to 64 entries. # +# matched, the banlist size defaults to 100 entries. # # # - - + + #-#-#-#-#-#-#-#-#-#-#- DISABLED FEATURES -#-#-#-#-#-#-#-#-#-#-#-#-#-# # # diff --git a/include/listmode.h b/include/listmode.h index f49c5b3c8..f978e9c9a 100644 --- a/include/listmode.h +++ b/include/listmode.h @@ -64,7 +64,7 @@ class CoreExport ListModeBase : public ModeHandler typedef std::vector limitlist; /** The default maximum list size. */ - static const unsigned int DEFAULT_LIST_SIZE = 64; + static const unsigned int DEFAULT_LIST_SIZE = 100; /** Finds the limit of modes that can be placed on the given channel name according to the config * @param channame The channel name to find the limit for