]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/filelogger.cpp
Fix MySQL crash on module unload with empty query queue
[user/henk/code/inspircd.git] / src / filelogger.cpp
index f442b8b7a548a9e5e7630a1fe43a0ef2d4021db8..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
@@ -35,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;
        }