From 0b661a634728d11625d0ea7677c8e363eac9c57e Mon Sep 17 00:00:00 2001 From: Akkadius Date: Fri, 16 Jan 2015 00:14:16 -0600 Subject: [PATCH] Implement log_settings for ProcessLogWrite --- common/eqemu_logsys.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/eqemu_logsys.cpp b/common/eqemu_logsys.cpp index be6cb45de..68f1cafdf 100644 --- a/common/eqemu_logsys.cpp +++ b/common/eqemu_logsys.cpp @@ -128,6 +128,10 @@ void EQEmuLogSys::ProcessGMSay(uint16 log_type, uint16 log_category, std::string void EQEmuLogSys::ProcessLogWrite(uint16 log_type, uint16 log_category, std::string message) { + /* Check if category enabled for process */ + if (log_settings[log_category].log_to_file) + return; + char time_stamp[80]; EQEmuLogSys::SetCurrentTimeStamp(time_stamp);