]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/configreader.h
Change std::pair<bool,std::string> to neater typedef "ModePair"
[user/henk/code/inspircd.git] / include / configreader.h
index 3bb7bb4ed4368aac2bb0a8cbeb6a614f9fb0138f..c6775bc298e3983e094f2abb96f8310b754aadc7 100644 (file)
@@ -32,7 +32,8 @@ typedef bool (*MultiNotify)(const char*);
 
 enum ConfigDataType { DT_NOTHING, DT_INTEGER, DT_CHARPTR, DT_BOOLEAN };
 
-struct InitialConfig {
+struct InitialConfig
+{
        char* tag;
        char* value;
        void* val;
@@ -40,7 +41,8 @@ struct InitialConfig {
        Validator validation_function;
 };
 
-struct MultiConfig {
+struct MultiConfig
+{
        const char* tag;
        char* items[12];
        int datatype[12];
@@ -299,6 +301,10 @@ class ServerConfig : public Extensible
         */
        int ports[255];
 
+       /** A list of the file descriptors for the listening client ports
+        */
+       int openSockfd[MAX_DESCRIPTORS];
+
        /** Boolean sets of which modules implement which functions
         */
        char implement_lists[255][255];
@@ -338,6 +344,10 @@ class ServerConfig : public Extensible
         */
        std::map<std::string,int> maxbans;
 
+       /** If set to true, no user DNS lookups are to be performed
+        */
+       bool NoUserDns;
+
        ServerConfig();
 
        /** Clears the include stack in preperation for
@@ -384,4 +394,6 @@ class ServerConfig : public Extensible
        bool DelIOHook(int port);
 };
 
+bool InitializeDisabledCommands(const char* data, InspIRCd* ServerInstance);
+
 #endif