From 1d0bb9b26b7ad58ab0bf979ac046f4511b3bf12b Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 5 May 2013 01:55:04 -0400 Subject: Rework the config file reader to be much more flexible and move many configuration directives to the actual modules they are used in. --- src/logger.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/logger.cpp') diff --git a/src/logger.cpp b/src/logger.cpp index f738cb2e1..d071b7cc3 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -21,7 +21,6 @@ #include "servers.h" #include "uplink.h" #include "protocol.h" -#include "global.h" #ifndef _WIN32 #include @@ -149,8 +148,8 @@ Log::~Log() if (Config) for (unsigned i = 0; i < Config->LogInfos.size(); ++i) - if (Config->LogInfos[i]->HasType(this->type, this->category)) - Config->LogInfos[i]->ProcessMessage(this); + if (Config->LogInfos[i].HasType(this->type, this->category)) + Config->LogInfos[i].ProcessMessage(this); FOREACH_MOD(I_OnLog, OnLog(this)); } -- cgit