]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/filelogger.cpp
Fix sqllog compile error
[user/henk/code/inspircd.git] / src / filelogger.cpp
index 1a88823c46b6c4f01d6c4d815ac14c4462d27b81..9e52f1ab5fb6ae174445edf0e684876a609bf6c0 100644 (file)
@@ -16,7 +16,6 @@
 #include "inspircd.h"
 #include <fstream>
 #include "socketengine.h"
-#include "inspircd_se_config.h"
 #include "filelogger.h"
 
 FileLogStream::FileLogStream(int loglevel, FileWriter *fw)
@@ -36,12 +35,7 @@ void FileLogStream::OnLog(int loglevel, const std::string &type, const std::stri
        static char TIMESTR[26];
        static time_t LAST = 0;
 
-       /* sanity check, just in case */
-       if (!ServerInstance->Config)
-               return;
-
-       /* If we were given -debug we output all messages, regardless of configured loglevel */
-       if ((loglevel < this->loglvl) && !ServerInstance->Config->forcedebug)
+       if (loglevel < this->loglvl)
        {
                return;
        }