X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fhelperfuncs.h;h=ce169c3b09ebd8a0a36675487202c0ae1380860e;hb=383caa90d568d8d997a9624a9e6174ddc1a9a3da;hp=801e05bdb625d859d37eb1132d931f6481d05ea3;hpb=2591562ada4cb1f866e5d1c98340fb19332b3844;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/helperfuncs.h b/include/helperfuncs.h index 801e05bdb..ce169c3b0 100644 --- a/include/helperfuncs.h +++ b/include/helperfuncs.h @@ -14,66 +14,3 @@ * --------------------------------------------------- */ -#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 -#include -#include - -/** 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 WriteOpers(const char* text, ...); -void WriteOpers_NoFormat(const char* text); - -std::string GetServerDescription(const char* servername); -void strlower(char *n); -userrec* Find(const std::string &nick); -userrec* Find(const char* nick); -chanrec* FindChan(const char* chan); -int usercount_i(chanrec *c); -long GetMaxBans(char* name); -void purge_empty_chans(userrec* u); -char* chanmodes(chanrec *chan, bool showkey); -void userlist(userrec *user,chanrec *c); -ConnectClass GetClass(userrec *user); -void Error(int status); -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 *); - -int charlcat(char* x,char y,int z); -bool charremove(char* mp, char remove); - -#endif