Add timestamp logging to ChatSniffer events

This commit is contained in:
2025-05-25 02:41:20 +02:00
parent 500c543d7c
commit dc94b70259
2 changed files with 4 additions and 1 deletions

View File

@@ -33,4 +33,5 @@ Modules/NetworkMessenger.lua
Modules/StinkyCache.lua Modules/StinkyCache.lua
Modules/Configurator.lua Modules/Configurator.lua
Modules/AchievementSniffer.lua Modules/AchievementSniffer.lua
Modules/ChatSniffer.lua
Heimdall.lua Heimdall.lua

View File

@@ -23,8 +23,10 @@ function shared.ChatSniffer.Init()
frame:RegisterEvent("CHAT_MSG_TEXT_EMOTE") frame:RegisterEvent("CHAT_MSG_TEXT_EMOTE")
frame:RegisterEvent("CHAT_MSG_YELL") frame:RegisterEvent("CHAT_MSG_YELL")
frame:SetScript("OnEvent", function(self, event, msg, sender, language, channel) frame:SetScript("OnEvent", function(self, event, msg, sender, language, channel)
local timestamp = date("%Y-%m-%d %H:%M:%S")
local log = string.format( local log = string.format(
"%s|%s|%s|%s|%s", "%s|%s|%s|%s|%s|%s",
tostring(timestamp),
tostring(event), tostring(event),
tostring(sender), tostring(sender),
tostring(msg), tostring(msg),