Compare commits

...

3 Commits

Author SHA1 Message Date
3bc59f9d73 Update whosniffer export 2024-11-28 16:48:23 +01:00
837fe3b71e Fix channel notifications 2024-11-28 16:48:18 +01:00
9adc6aceda Stop spam while options are open 2024-11-28 16:46:17 +01:00
3 changed files with 5 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
-- TICKER_1000
function()
if aura_env.queryPending then return end
if WeakAuras.IsOptionsOpen() then return end
SetWhoToUI(1)
---@type WHOQuery
local query = aura_env.whoQueries[aura_env.whoQueryIdx]

File diff suppressed because one or more lines are too long

View File

@@ -241,7 +241,7 @@ end
---@param player Player
---@return string
local MakeNotifyMessage = function(player)
aura_env.MakeNotifyMessage = function(player)
return string.format("%s of class %s and guild %s in %s, first seen: %s, last seen: %s, times seen: %d",
player.name, player.class, player.guild, player.zone, player.firstSeen, player.lastSeen, player.seenCount)
end
@@ -263,7 +263,7 @@ aura_env.Notify = function(player)
if not notifyFor[player.zone] then
return
end
local msg = MakeNotifyMessage(player)
local msg = aura_env.MakeNotifyMessage(player)
NotifyAll(msg)
aura_env.NotifyChannel(player)
end
@@ -320,7 +320,7 @@ end
---@param player Player
---@return nil
aura_env.NotifyChannel = function(player)
local msg = MakeNotifyMessage(player)
local msg = aura_env.MakeNotifyMessage(player)
NotifyChannel(msg)
end