]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/configreader.h
Add reference to wiki CIDR tutorial in <cidr> docs.
[user/henk/code/inspircd.git] / include / configreader.h
index 2556cf08898b9fecb3c114c91c2a63d5aa4969c5..877cb823df2d71fb376056bdd038cce877f490d5 100644 (file)
@@ -253,7 +253,6 @@ class ServerLimits : public Extensible
        {
                NickMax++;
                ChanMax++;
-               MaxModes++;
                IdentMax++;
                MaxQuit++;
                MaxTopic++;
@@ -286,14 +285,13 @@ class CoreExport ServerConfig : public Extensible
         * configutation, appending errors to errorstream
         * and setting error if an error has occured.
         */
-       bool ParseLine(ConfigDataHash &target, std::string &line, long &linenumber, std::ostringstream &errorstream);
+       bool ParseLine(ConfigDataHash &target, const std::string &filename, std::string &line, long &linenumber, std::ostringstream &errorstream);
 
        /** Check that there is only one of each configuration item
         */
        bool CheckOnce(const char* tag, ConfigDataHash &newconf);
 
  public:
-
        /** Process an include executable directive
         */
        bool DoPipe(ConfigDataHash &target, const std::string &file, std::ostringstream &errorstream);
@@ -329,6 +327,16 @@ class CoreExport ServerConfig : public Extensible
 
        ServerLimits Limits;
 
+       /** Clones CIDR range for ipv4 (0-32)
+        * Defaults to 32 (checks clones on all IPs seperately)
+        */
+       int c_ipv4_range;
+
+       /** Clones CIDR range for ipv6 (0-128)
+        * Defaults to 128 (checks on all IPs seperately)
+        */
+       int c_ipv6_range;
+
        /** Max number of WhoWas entries per user.
         */
        int WhoWasGroupSize;