diff --git a/FreshShit/RIOChecker/event2.lua b/FreshShit/RIOChecker/event2.lua index da8b2ca..57c78e1 100644 --- a/FreshShit/RIOChecker/event2.lua +++ b/FreshShit/RIOChecker/event2.lua @@ -7,5 +7,6 @@ function(e, source) local name = UnitName("target") if not name then return end if not aura_env.me then aura_env.me = UnitName("player") end - SendChatMessage(".ch " .. name, "WHISPER", nil, aura_env.me) + local msg = ".ch " .. name + SendChatMessage(msg, "WHISPER", nil, aura_env.me) end \ No newline at end of file diff --git a/FreshShit/RIOChecker/init.lua b/FreshShit/RIOChecker/init.lua index a819d6d..921a623 100644 --- a/FreshShit/RIOChecker/init.lua +++ b/FreshShit/RIOChecker/init.lua @@ -175,6 +175,10 @@ Key = { return true end return false + end, + ---@param self Key + register = function(self) + WeakAurasSaved.Cyka.MData[self:hash()] = self end } @@ -201,10 +205,10 @@ function aura_env.Process() score = string.gsub(score, "%s+", "") local keyObj = Key.new(key, role, level, time, score) + keyObj:register() if key then keys[#keys + 1] = keyObj end - WeakAurasSaved.Cyka.MData[keyObj:hash()] = keyObj end table.sort(keys, Key.compareTo) render(keys)