diff --git a/Heimdall.zip b/Heimdall.zip index 37d81bc..2b4b37f 100644 --- a/Heimdall.zip +++ b/Heimdall.zip @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:dd00f659024ed47016bcc27b89c9edbdda7ad6970458f4cfa89d14e3f40aa976 -size 20496 +oid sha256:f820ce2dec9c7e4f4bfad32dc83a56d6e36fde437d243502ec09b6998e363fbf +size 19076 diff --git a/Modules/AgentTracker.lua b/Modules/AgentTracker.lua index 13443a3..4ce159f 100644 --- a/Modules/AgentTracker.lua +++ b/Modules/AgentTracker.lua @@ -21,6 +21,19 @@ function shared.AgentTracker.Init() end --shared.dumpTable(Heimdall_Data.config.agents) end) + + local agentTrackerChannelSniffer = CreateFrame("Frame") + agentTrackerChannelSniffer:RegisterEvent("CHAT_MSG_CHANNEL") + agentTrackerChannelSniffer:SetScript("OnEvent", function(self, event, msg, sender, ...) + if not Heimdall_Data.config.agentTracker.enabled then return end + local channelId = select(6, ...) + local channelname = GetChannelName(channelId) + if not channelname then return end + if channelname ~= Heimdall_Data.config.who.notifyChannel then return end + local agentName = sender + if not agentName then return end + Heimdall_Data.config.agents[agentName] = date("%Y-%m-%dT%H:%M:%S") + end) print("Heimdall - AgentTracker loaded") end diff --git a/Modules/Whoer.lua b/Modules/Whoer.lua index ae819a2..0caeada 100644 --- a/Modules/Whoer.lua +++ b/Modules/Whoer.lua @@ -296,7 +296,7 @@ function shared.Whoer.Init() local stinky = Heimdall_Data.config.stinkies[name] if stinky then player.stinky = true - PlaySoundFile("Interface\\Sounds\\Domination.ogg", "Master") + --PlaySoundFile("Interface\\Sounds\\Domination.ogg", "Master") else --PlaySoundFile("Interface\\Sounds\\Cloak.ogg", "Master") end