]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/helperfuncs.h
Add timeouts to the http module. Two seperate timeouts, 60 seconds to receive headers...
[user/henk/code/inspircd.git] / include / helperfuncs.h
index 21cb6caf39b24525e59a810f469a1b97a8f5c256..ce169c3b09ebd8a0a36675487202c0ae1380860e 100644 (file)
  * ---------------------------------------------------
  */
 
-#ifndef _HELPER_H_
-#define _HELPER_H_
-
-#include "dynamic.h"
-#include "base.h"
-#include "ctables.h"
-#include "users.h"
-#include "channels.h"
-#include "typedefs.h"
-#include <string>
-#include <deque>
-#include <sstream>
-
-/** Debug levels for use with InspIRCd::Log()
- */
-enum DebugLevel
-{
-       DEBUG = 10,
-       VERBOSE = 20,
-       DEFAULT = 30,
-       SPARSE = 40,
-       NONE = 50,
-};
-
-/* I'm not entirely happy with this, the ## before 'args' is a g++ extension.
- * The problem is that if you #define log(l, x, args...) and then call it
- * with only two parameters, you get do_log(l, x, ), which is a syntax error...
- * The ## tells g++ to remove the trailing comma...
- * If this is ever an issue, we can just have an #ifndef GCC then #define log(a...) do_log(a)
- */
-#define STRINGIFY2(x) #x
-#define STRINGIFY(x) STRINGIFY2(x) 
-#define log(l, x, args...) InspIRCd::Log(l, __FILE__ ":" STRINGIFY(__LINE__) ": " x, ##args)
-
-void strlower(char *n);
-void Error(int status);
-void ShowMOTD(userrec *user);
-void ShowRULES(userrec *user);
-bool AllModulesReportReady(userrec* user);
-bool IsValidChannelName(const char *);
-
-#endif