summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/inspircd.h2
-rw-r--r--include/logger.h3
-rw-r--r--src/logger.cpp6
-rw-r--r--src/server.cpp5
4 files changed, 7 insertions, 9 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 9a9583499..b55c4c014 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -324,8 +324,6 @@ class CoreExport InspIRCd
*/
FakeUser* FakeClient;
- static const char LogHeader[];
-
/** Find a user in the UUID hash
* @param uid The UUID to find
* @return A pointer to the user, or NULL if the user does not exist
diff --git a/include/logger.h b/include/logger.h
index 0f95ad873..6bf64801f 100644
--- a/include/logger.h
+++ b/include/logger.h
@@ -89,6 +89,8 @@ class CoreExport LogStream : public classbase
protected:
int loglvl;
public:
+ static const char LogHeader[];
+
LogStream(int loglevel) : loglvl(loglevel)
{
}
@@ -137,7 +139,6 @@ class CoreExport LogManager
FileLogMap FileLogs;
public:
-
LogManager();
~LogManager();
diff --git a/src/logger.cpp b/src/logger.cpp
index b33f65ac4..bc1dd3253 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -51,6 +51,10 @@
*
*/
+const char LogStream::LogHeader[] =
+ "Log started for " VERSION " (" REVISION ", " MODULE_INIT_STR ")"
+ " - compiled on " SYSTEM;
+
LogManager::LogManager()
{
Logging = false;
@@ -126,7 +130,7 @@ void LogManager::OpenFileLogs()
fw = fwi->second;
}
FileLogStream* fls = new FileLogStream(loglevel, fw);
- fls->OnLog(LOG_SPARSE, "HEADER", InspIRCd::LogHeader);
+ fls->OnLog(LOG_SPARSE, "HEADER", LogStream::LogHeader);
AddLogTypes(type, fls, true);
}
}
diff --git a/src/server.cpp b/src/server.cpp
index 2e6109202..66b175a1a 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -73,11 +73,6 @@ std::string InspIRCd::GetVersionString(bool getFullVersion)
return BRANCH " " + Config->ServerName + " :" + Config->CustomVersion;
}
-const char InspIRCd::LogHeader[] =
- "Log started for " VERSION " (" REVISION ", " MODULE_INIT_STR ")"
- " - compiled on " SYSTEM;
-
-
std::string UIDGenerator::GenerateSID(const std::string& servername, const std::string& serverdesc)
{
unsigned int sid = 0;