]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Raise the default listmode limit to 100 from 64.
authorPeter Powell <petpow@saberuk.com>
Thu, 14 Sep 2017 13:14:53 +0000 (14:14 +0100)
committerPeter Powell <petpow@saberuk.com>
Thu, 14 Sep 2017 14:42:34 +0000 (15:42 +0100)
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.

docs/conf/inspircd.conf.example
include/listmode.h

index 136346f7ce6e837dc400202635023c7db79c6481..c90cf575544882654fcbab451bbf86a93ecaf049 100644 (file)
 # 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.                  #
 #                                                                     #
 
-<banlist chan="#largechan" limit="128">
-<banlist chan="*" limit="69">
+<banlist chan="#largechan" limit="200">
+<banlist chan="*" limit="100">
 
 #-#-#-#-#-#-#-#-#-#-#-  DISABLED FEATURES  -#-#-#-#-#-#-#-#-#-#-#-#-#-#
 #                                                                     #
index f49c5b3c8ed825ab9df3be277fc41092eb699fa2..f978e9c9a39529afb3f7c219a4f72c34c569efd3 100644 (file)
@@ -64,7 +64,7 @@ class CoreExport ListModeBase : public ModeHandler
        typedef std::vector<ListLimit> 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