Compare commits

...

2 Commits

Author SHA1 Message Date
1c70cabc9a Add ignores to whosniffer 2024-11-26 21:05:47 +01:00
dce05a3c44 Clean up LoginInfo to not eat too much memory 2024-11-26 21:03:37 +01:00
3 changed files with 178 additions and 170 deletions

View File

@@ -1,2 +1,6 @@
aura_env.KickTime = 0
aura_env.AfkSince = 0
WeakAurasSaved.Cyka.LoginInfo = {
[Today] = WeakAurasSaved.Cyka.LoginInfo[Today] or {}
}

View File

@@ -2,6 +2,7 @@
function()
for i = 1, GetNumWhoResults() do
local name, guild, level, race, class, zone = GetWhoInfo(i)
if not aura_env.ignored[name] then
---@type WHOQuery
local query = aura_env.lastQuery
if not query then
@@ -46,6 +47,7 @@ function()
player.zone = zone
aura_env.stinkies[name] = player
end
end
-- Turns out WA cannot do this (
-- aura_env.UpdateMacro()
_G["FriendsFrameCloseButton"]:Click()

View File

@@ -1,6 +1,8 @@
if not WeakAurasSaved.Cyka then WeakAurasSaved.Cyka = {} end
if not WeakAurasSaved.Cyka.WhoSniffer then WeakAurasSaved.Cyka.WhoSniffer = {} end
aura_env.ignored = { "Maritza", "Goodbones" }
---@class aura_env
---@field raceMap table<string, string>
---@field stinkies table<string, Player>