From b2ffcf1cf6ab1dbe8abbf09aa705b47718ca0309 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 20 Jan 2015 03:02:41 -0600 Subject: [PATCH] Implement debug_level checking for ProcessGMSay --- common/eqemu_logsys.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/eqemu_logsys.cpp b/common/eqemu_logsys.cpp index 035f0c09d..470ccf9c7 100644 --- a/common/eqemu_logsys.cpp +++ b/common/eqemu_logsys.cpp @@ -110,6 +110,10 @@ void EQEmuLogSys::ProcessGMSay(uint16 debug_level, uint16 log_category, std::str if (log_category == Logs::LogCategory::Netcode) return; + /* Make sure the message inbound is at a debug level we're set at */ + if (log_settings[log_category].log_to_gmsay < debug_level) + return; + /* Check to see if the process that actually ran this is zone */ if (EQEmuLogSys::log_platform == EQEmuExePlatform::ExePlatformZone){ on_log_gmsay_hook(log_category, message);