[Logging] Improvements to GM Say Logging (#2765)

This commit is contained in:
Chris Miles
2023-01-19 22:24:57 -06:00
committed by GitHub
parent d3e756287e
commit 900837f633
5 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -327,7 +327,7 @@ public:
* @param log_category
* @param message
*/
static void GMSayHookCallBackProcess(uint16 log_category, std::string message)
static void GMSayHookCallBackProcess(uint16 log_category, const char *func, std::string message)
{
// we don't want to loop up with chat messages
if (message.find("OP_SpecialMesg") != std::string::npos) {
@@ -372,7 +372,7 @@ public:
0,
AccountStatus::QuestTroupe,
LogSys.GetGMSayColorFromCategory(log_category),
message.c_str()
fmt::format("[{}] [{}] {}", Logs::LogCategoryName[log_category], func, message).c_str()
);
}
}