summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h6
-rw-r--r--include/inspircd_io.h9
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