mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-25 19:07:16 +00:00
[Logging] Improvements to GM Say Logging (#2765)
This commit is contained in:
1 parent
d3e756287e
commit
900837f633
5 files changed
+17
-17
No files matched your search
@@ -30,7 +30,7 @@
|
||||
extern ZSList zoneserver_list;
|
||||
extern WorldConfig Config;
|
||||
|
||||
void WorldBoot::GMSayHookCallBackProcessWorld(uint16 log_category, std::string message)
|
||||
void WorldBoot::GMSayHookCallBackProcessWorld(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) {
|
||||
@@ -71,7 +71,7 @@ void WorldBoot::GMSayHookCallBackProcessWorld(uint16 log_category, std::string m
|
||||
AccountStatus::QuestTroupe,
|
||||
LogSys.GetGMSayColorFromCategory(log_category),
|
||||
"%s",
|
||||
message.c_str()
|
||||
fmt::format("[{}] [{}] {}", Logs::LogCategoryName[log_category], func, message).c_str()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user