]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/configreader.h
Allow fast sid reuse by erasing fake users from UserManager::uuidlist when the netspl...
[user/henk/code/inspircd.git] / include / configreader.h
index ec99326588d10cb6b7b8456b9eb06ba8003b54ae..f3137ec0a982d1320be1856de07d62fd29e3c0f0 100644 (file)
@@ -216,10 +216,10 @@ class CoreExport ServerConfig
                std::string Module;
 
                ServerPaths()
-                       : Config(CONFIG_PATH)
-                       , Data(DATA_PATH)
-                       , Log(LOG_PATH)
-                       , Module(MOD_PATH) { }
+                       : Config(INSPIRCD_CONFIG_PATH)
+                       , Data(INSPIRCD_DATA_PATH)
+                       , Log(INSPIRCD_LOG_PATH)
+                       , Module(INSPIRCD_MODULE_PATH) { }
 
                std::string PrependConfig(const std::string& fn) const { return FileSystem::ExpandPath(Config, fn); }
                std::string PrependData(const std::string& fn) const { return FileSystem::ExpandPath(Data, fn); }
@@ -227,6 +227,14 @@ class CoreExport ServerConfig
                std::string PrependModule(const std::string& fn) const { return FileSystem::ExpandPath(Module, fn); }
        };
 
+       /** Holds a complete list of all connect blocks
+        */
+       typedef std::vector<reference<ConnectClass> > ClassVector;
+
+       /** Index of valid oper blocks and types
+        */
+       typedef std::map<std::string, reference<OperInfo> > OperIndex;
+
        /** Get a configuration tag
         * @param tag The name of the tag to get
         */
@@ -446,11 +454,11 @@ class CoreExport ServerConfig
         */
        OperIndex OperTypes;
 
-       /** Max channels per user
+       /** Default value for <connect:maxchans>, deprecated in 2.2
         */
        unsigned int MaxChans;
 
-       /** Oper max channels per user
+       /** Default value for <oper:maxchans>, deprecated in 2.2
         */
        unsigned int OperMaxChans;