This commit is contained in:
2024-10-14 16:17:49 +02:00
parent a71b13e1bb
commit 4268283e6f
2 changed files with 7 additions and 3 deletions

View File

@@ -53,14 +53,15 @@ function(allstates, e, prefix, msg, ...)
if not prefix or prefix ~= aura_env.addonprefix then return end
local name, threat, note = string.split(aura_env.separator, msg)
threat = tonumber(threat)
if not name then
if aura_env.config.debug then
print("Could not get name for " .. msg)
end
return
end
end
if threat < aura_env.config.threatThreshold then
if threat < aura_env.config.threatThreshold then
if aura_env.config.debug then
print(string.format("Skipping notify due to low threat (%d < %d)", threat, aura_env.config.threatThreshold))
end

View File

@@ -0,0 +1,3 @@
function(t)
return t[3]
end