X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fconfigreader.h;h=c6775bc298e3983e094f2abb96f8310b754aadc7;hb=a1f073f66f4b985bf776b9be2015136209c0c311;hp=3bb7bb4ed4368aac2bb0a8cbeb6a614f9fb0138f;hpb=3dacf1edd2e1e623b07819bb483ae61eff3854cd;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/configreader.h b/include/configreader.h index 3bb7bb4ed..c6775bc29 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -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 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