]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/configreader.h
This seems to play nice now, but it seems we may have to redo it all AGAIN :(
[user/henk/code/inspircd.git] / include / configreader.h
index d7789b9ed2f51ece1ac85fa4a356a366b94f6383..3120d3d59b69fb5267b9f3fc7eb5ef7a90b8ce50 100644 (file)
@@ -49,7 +49,8 @@ enum ConfigDataType
        DT_IPADDRESS     = 6,           /* IP address (v4, v6) */
        DT_CHANNEL       = 7,           /* Channel name */
        DT_ALLOW_WILD    = 64,          /* Allow wildcards/CIDR in DT_IPADDRESS */
-       DT_ALLOW_NEWLINE = 128          /* New line characters allowed in DT_CHARPTR */
+       DT_ALLOW_NEWLINE = 128,         /* New line characters allowed in DT_CHARPTR */
+       DT_BOOTONLY      = 256          /* Can only be set on startup, not on rehash */
 };
 
 /** Holds a config value, either string, integer or boolean.
@@ -172,7 +173,7 @@ struct InitialConfig
        /** Value containers */
        ValueContainerBase* val;
        /** Data types */
-       ConfigDataType datatype;
+       int datatype;
        /** Validation function */
        Validator validation_function;
 };