enum ConfigDataType { DT_NOTHING, DT_INTEGER, DT_CHARPTR, DT_BOOLEAN };
-struct InitialConfig {
+struct InitialConfig
+{
char* tag;
char* value;
void* val;
Validator validation_function;
};
-struct MultiConfig {
+struct MultiConfig
+{
const char* tag;
char* items[12];
int datatype[12];
*/
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];
*/
std::map<std::string,int> maxbans;
+ /** If set to true, no user DNS lookups are to be performed
+ */
+ bool NoUserDns;
+
+ /** If set to true, provide syntax hints for unknown commands
+ */
+ bool SyntaxHints;
+
ServerConfig();
/** Clears the include stack in preperation for
bool DelIOHook(int port);
};
+bool InitializeDisabledCommands(const char* data, InspIRCd* ServerInstance);
+
#endif