From d54fbc71e2a2e0f70002e2d36c669c4aa3d59e17 Mon Sep 17 00:00:00 2001 From: om Date: Sat, 8 Apr 2006 17:05:48 +0000 Subject: Split inspircd_io.* insp inspsocket.* and configreader.* with a few odd bits going into inspircd.*, doesn't look like I've broken anything... :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3847 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/helperfuncs.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/helperfuncs.h') diff --git a/include/helperfuncs.h b/include/helperfuncs.h index ee434fd08..c9645144f 100644 --- a/include/helperfuncs.h +++ b/include/helperfuncs.h @@ -27,6 +27,14 @@ #include #include +/** Flags for use with log() + */ +#define DEBUG 10 +#define VERBOSE 20 +#define DEFAULT 30 +#define SPARSE 40 +#define NONE 50 + void log(int level,char *text, ...); void readfile(file_cache &F, const char* fname); @@ -84,6 +92,8 @@ void ShowMOTD(userrec *user); void ShowRULES(userrec *user); bool AllModulesReportReady(userrec* user); bool DirValid(char* dirandfile); +bool FileExists(const char* file); +char* CleanFilename(char* name); std::string GetFullProgDir(char** argv, int argc); int InsertMode(std::string &output, const char* modes, unsigned short section); bool IsValidChannelName(const char *); -- cgit v1.2.3