Cleanup and details
This commit is contained in:
@@ -5,7 +5,9 @@ function()
|
||||
if message == nil then return end
|
||||
|
||||
table.remove(aura_env.messageQueue, 1)
|
||||
if aura_env.config.debug then
|
||||
print(string.format("Processing message; %d in queue", #aura_env.messageQueue))
|
||||
end
|
||||
|
||||
if message.addon then
|
||||
SendAddonMessage(aura_env.addonprefix, message.message, message.channel, message.to)
|
||||
|
||||
@@ -80,18 +80,21 @@ function(allstates, e, prefix, msg, ...)
|
||||
return
|
||||
end
|
||||
|
||||
if not allstates[name] then
|
||||
PlaySoundFile("Interface\\Sounds\\Domination.ogg", "Master")
|
||||
end
|
||||
|
||||
allstates[name] = {
|
||||
show = true,
|
||||
changed = true,
|
||||
name = string.format("%-30s", name),
|
||||
progressType = "timed",
|
||||
duration = 60,
|
||||
expirationTime = GetTime() + 60,
|
||||
expirationTime = GetTime() + aura_env.config.alertThrottle,
|
||||
autohide = true,
|
||||
index = GetTime(),
|
||||
progress = string.format("%20s", "0s"),
|
||||
}
|
||||
PlaySoundFile("Interface\\Sounds\\Domination.ogg", "Master")
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -250,7 +250,7 @@ aura_env.localStinkies = {}
|
||||
---@param name string
|
||||
aura_env.StinkyDetected = function(name)
|
||||
if not aura_env.localStinkies[name] or aura_env.localStinkies[name] <
|
||||
GetTime() - aura_env.config.throttle then
|
||||
GetTime() - aura_env.config.messageThrottle then
|
||||
local stinky = aura_env.stinkies[name]
|
||||
Message.QueueNotifyGuild(stinky)
|
||||
Message.QueueNotifyWhisper(stinky)
|
||||
@@ -260,6 +260,7 @@ aura_env.StinkyDetected = function(name)
|
||||
aura_env.localStinkies[name] = GetTime()
|
||||
end
|
||||
|
||||
if aura_env.config.addFriends and not aura_env.config.addFriends2 then
|
||||
local friends = {}
|
||||
local numfriends = GetNumFriends()
|
||||
for i = 1, numfriends do
|
||||
@@ -288,6 +289,7 @@ C_Timer.After(1, function()
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
--/run WeakAurasSaved.Cyka.Stinkies["Totleta"] = true
|
||||
-- /dump WeakAurasSaved.Cyka.Stinkies
|
||||
|
||||
Reference in New Issue
Block a user