diff --git a/FreshShit/StinkyDetector/event3.lua b/FreshShit/StinkyDetector/event3.lua index c39d625..29ed476 100644 --- a/FreshShit/StinkyDetector/event3.lua +++ b/FreshShit/StinkyDetector/event3.lua @@ -52,11 +52,18 @@ function(allstates, e, prefix, msg, ...) end if not prefix or prefix ~= aura_env.addonprefix then return end - local name, threat, note = string.split(aura_env.separator, msg) + local name, threat, note = strsplit(aura_env.separator, msg) + print("threat", threat) threat = tonumber(threat) if not name then if aura_env.config.debug then - print("Could not get name for " .. msg) + print(string.format("Could not get name for %s (%s) with deliminer '%s'", msg, name or "nil", aura_env.separator)) + end + return + end + if not threat then + if aura_env.config.debug then + print(string.format("Could not get threat for %s (%s) with deliminer '%s'", msg, threat or "nil", aura_env.separator)) end return end