]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/filelogger.cpp
Clean up empty/unused directories
[user/henk/code/inspircd.git] / src / filelogger.cpp
index 1a88823c46b6c4f01d6c4d815ac14c4462d27b81..8ed66eca29cd0eeeb923b26e65216bfcb4bb9259 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
@@ -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;
        }