Bug Fixes

This commit is contained in:
Lexie
2024-08-03 08:05:59 +10:00
parent 0298e95343
commit 5ed19a3d41
7 changed files with 28 additions and 12 deletions
+15
View File
@@ -3846,6 +3846,10 @@ AtlasLoot_updater:RegisterEvent("CHAT_MSG_ADDON")
AtlasLoot_updater:RegisterEvent("CHAT_MSG_CHANNEL")
AtlasLoot_updater:RegisterEvent("PLAYER_ENTERING_WORLD")
AtlasLoot_updater:RegisterEvent("PARTY_MEMBERS_CHANGED")
AtlasLoot_updater:RegisterEvent("CHAT_MSG_CHANNEL_JOIN")
AtlasLootUserCounter = {}
PlayerCounter = {}
AtlasLoot_updater:SetScript("OnEvent", function()
if event == "CHAT_MSG_ADDON" and arg1 == "AtlasLoot" then
@@ -3864,6 +3868,13 @@ AtlasLoot_updater:SetScript("OnEvent", function()
end
end
if event == "CHAT_MSG_CHANNEL_JOIN" then
local name = arg2
if not PlayerCounter[name] then
PlayerCounter[name] = 1
end
end
if event == "CHAT_MSG_CHANNEL" then
local _,_,source = string.find(arg4,"(%d+)%.")
if source then
@@ -3885,6 +3896,10 @@ AtlasLoot_updater:SetScript("OnEvent", function()
end
end
end
local name = arg2
if not AtlasLootUserCounter[name] then
AtlasLootUserCounter[name] = 1
end
end
end
end