diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-14 10:51:18 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-14 10:51:18 +0000 |
commit | d582107b33c3b154747a0a38f33963af7ad3c53f (patch) | |
tree | 7290c0dd5259f2416a3ccefb3dcffdb94d691029 /include | |
parent | 44d3b5b82626f627069033c7bf019d4b1564b21c (diff) |
Started moving of data into ServerConfig class
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2393 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd.h | 6 | ||||
-rw-r--r-- | include/inspircd_io.h | 9 |
2 files changed, 14 insertions, 1 deletions
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 <string> #include <stdio.h> @@ -75,6 +78,7 @@ typedef std::deque<std::string> 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 <sstream> #include <string> +#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 |