]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/inspircd_io.h
Add checks for AddIOHook failing
[user/henk/code/inspircd.git] / include / inspircd_io.h
index c8dd1a11208afbc46afc6c0e07c0a5629f0bb69e..da592d6c431c680fac4a30f89cca7db3beb6c1b6 100644 (file)
@@ -61,6 +61,10 @@ class ServerConfig : public classbase
         */
        std::string ConfProcess(char* buffer, long linenumber, std::stringstream* errorstream, bool &error, std::string filename);
 
+       /** Check that there is only one of each configuration item
+        */
+       bool CheckOnce(char* tag, bool bail, userrec* user);
+
   public:
 
        /** Holds the server name of the local server
@@ -193,6 +197,11 @@ class ServerConfig : public classbase
         */
         unsigned int SoftLimit;
 
+       /** Maximum number of targets for a multi target command
+        * such as PRIVMSG or KICK
+        */
+       unsigned int MaxTargets;
+
        /** The maximum number of /WHO results allowed
         * in any single /WHO command.
         */
@@ -278,6 +287,10 @@ class ServerConfig : public classbase
         */
        std::string logpath;
 
+       /** Custom version string, which if defined can replace the system info in VERSION.
+        */
+       char CustomVersion[MAXBUF];
+
        ServerConfig();
 
        /** Clears the include stack in preperation for
@@ -312,5 +325,6 @@ int OpenTCPSocket (void);
 int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr);
 void WritePID(std::string filename);
 int BindPorts();
+char* CleanFilename(char* name);
 
 #endif