Implement log_settings for ProcessConsoleMessage

This commit is contained in:
Akkadius 2015-01-16 00:14:49 -06:00
parent 0b661a6347
commit 73b54ffabb

View File

@ -145,6 +145,10 @@ void EQEmuLogSys::ProcessLogWrite(uint16 log_type, uint16 log_category, std::str
void EQEmuLogSys::ProcessConsoleMessage(uint16 log_type, uint16 log_category, const std::string message)
{
/* Check if category enabled for process */
if (log_settings[log_category].log_to_console)
return;
if (log_type > EQEmuLogSys::MaxLogID){
return;
}