]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/inspircd.h
Convertage.
[user/henk/code/inspircd.git] / include / inspircd.h
index 13a94331ac664ef83ef8235f315eac9044c68a02..5e5ebce421518d7e4f45433c7253cad470b3d145 100644 (file)
 #define CUSTOM_PRINTF(STRING, FIRST)
 #endif
 
-#ifndef PATH_MAX
-#define PATH_MAX 4096
-#endif
-
 // Required system headers.
 #include <ctime>
 #include <cstdarg>
 #include <algorithm>
 #include <cmath>
 #include <cstring>
+#include <climits>
 
 #include "inspircd_config.h"
+#include "numerics.h"
 #include "uid.h"
 #include "users.h"
 #include "channels.h"
 #include "inspstring.h"
 #include "protocol.h"
 
+#ifndef PATH_MAX
+#warning Potentially broken system, PATH_MAX undefined
+#define PATH_MAX 4096
+#endif
+
 /**
  * Used to define the maximum number of parameters a command may have.
  */
@@ -272,12 +275,7 @@ class CoreExport ConfigReaderThread : public Thread
  * classbase. Amongst other things, it contains a ModeParser,
  * a DNS object, a CommandParser object, and a list of active
  * Module objects, and facilities for Module objects to
- * interact with the core system it implements. You should
- * NEVER attempt to instantiate a class of type InspIRCd
- * yourself. If you do, this is equivalent to spawning a second
- * IRC server, and could have catastrophic consequences for the
- * program in terms of ram usage (basically, you could create
- * an obese forkbomb built from recursively spawning irc servers!)
+ * interact with the core system it implements.
  */
 class CoreExport InspIRCd : public classbase
 {