]> 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 840e227de1d5cc427e17468e56d6e17ee99c2807..877cb823df2d71fb376056bdd038cce877f490d5 100644 (file)
@@ -248,6 +248,18 @@ class ServerLimits : public Extensible
        ServerLimits() : NickMax(31), ChanMax(64), MaxModes(20), IdentMax(12), MaxQuit(255), MaxTopic(307), MaxKick(255), MaxGecos(128), MaxAway(200)
        {
        }
+
+       void Finalise()
+       {
+               NickMax++;
+               ChanMax++;
+               IdentMax++;
+               MaxQuit++;
+               MaxTopic++;
+               MaxKick++;
+               MaxGecos++;
+               MaxAway++;
+       }
 };
 
 /** This class holds the bulk of the runtime configuration for the ircd.
@@ -273,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);
@@ -316,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;