From d582107b33c3b154747a0a38f33963af7ad3c53f Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 14 Dec 2005 10:51:18 +0000 Subject: Started moving of data into ServerConfig class git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2393 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd.h | 6 ++++++ include/inspircd_io.h | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/inspircd.h b/include/inspircd.h index 3418d6ede..dc440708e 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -14,6 +14,9 @@ * --------------------------------------------------- */ +#ifndef __INSPIRCD_H__ +#define __INSPIRCD_H__ + #include "inspircd_config.h" #include #include @@ -75,6 +78,7 @@ typedef std::deque file_cache; class serverstats { + public: int statsAccept; int statsRefused; int statsUnknown; @@ -156,3 +160,5 @@ void* dns_task(void* arg); void process_buffer(const char* cmdbuf,userrec *user); void FullConnectUser(userrec* user); chanrec* ForceChan(chanrec* Ptr,ucrec &a,userrec* user, int created); + +#endif diff --git a/include/inspircd_io.h b/include/inspircd_io.h index 16ed158ea..36b00e935 100644 --- a/include/inspircd_io.h +++ b/include/inspircd_io.h @@ -14,11 +14,16 @@ * --------------------------------------------------- */ +#ifndef __INSPIRCD_IO_H__ +#define __INSPIRCD_IO_H__ + #include #include +#include "inspircd.h" class ServerConfig { + public: char ServerName[MAXBUF]; char Network[MAXBUF]; char ServerDesc[MAXBUF]; @@ -75,7 +80,7 @@ class ServerConfig MaxConn = SOMAXCONN; MaxWhoResults = 100; debugging = 0; - LogLevel = DEFAULT; + LogLevel = 0; DieDelay = 5; } }; @@ -95,3 +100,5 @@ int ConfValueEnum(char* tag,std::stringstream *config); int EnumConf(std::stringstream *config_f,const char* tag); int EnumValues(std::stringstream *config, const char* tag, int index); void WritePID(std::string filename); + +#endif -- cgit v1.2.3