summaryrefslogtreecommitdiff
path: root/include/helperfuncs.h
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-08 17:05:48 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-08 17:05:48 +0000
commitd54fbc71e2a2e0f70002e2d36c669c4aa3d59e17 (patch)
tree9e22656474f0fc034de7cf317d7aa7ae22a8abe8 /include/helperfuncs.h
parent315cd88a911eaa327df520e8533be82efea0c66f (diff)
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
Diffstat (limited to 'include/helperfuncs.h')
-rw-r--r--include/helperfuncs.h10
1 files changed, 10 insertions, 0 deletions
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 <deque>
#include <sstream>
+/** 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 *);