From 8e8368115f5dd0507eefe62b1b3dd55c25568c27 Mon Sep 17 00:00:00 2001 From: AyrianaWoW Date: Tue, 8 Oct 2024 20:48:33 -0400 Subject: [PATCH] Update AtlasLoot.lua Added inline-code comment to explicitly credit Shagu for the pfUI update code; commented out section of code checking AtlasLoot version against party members version to allow both branches of AtlasLoot to coexist, though some minor bugs may occur with linking items due to this change --- Core/AtlasLoot.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Core/AtlasLoot.lua b/Core/AtlasLoot.lua index 61f5504..0e4d7d0 100644 --- a/Core/AtlasLoot.lua +++ b/Core/AtlasLoot.lua @@ -3858,7 +3858,7 @@ function AtlasLoot_GetChatLink(id) return "\124"..e.."\124H"..b.."\124h["..a.."]\124h\124r" end ---pfUI.api.strsplit +--pfUI.api.strsplit --Uses code borrowed from pfUI by Shagu local function AtlasLoot_strsplit(delimiter, subject) if not subject then return nil end local delimiter, fields = delimiter or ":", {} @@ -3867,9 +3867,8 @@ local function AtlasLoot_strsplit(delimiter, subject) return unpack(fields) end ---Update announcing code taken from pfUI +--Update announcing code taken from pfUI by Shagu local major, minor, fix = AtlasLoot_strsplit(".", tostring(GetAddOnMetadata("AtlasLoot", "Version"))) - local alreadyshown = false local localversion = tonumber(major*10000 + minor*100 + fix) local remoteversion = tonumber(AtlasLoot_updateavailable) or 0 @@ -3880,7 +3879,7 @@ AtlasLoot_updater = CreateFrame("Frame") 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("PARTY_MEMBERS_CHANGED") --Remove some unnecessary addon spam and allow different AtlasLoot branches to coexist AtlasLoot_updater:RegisterEvent("CHAT_MSG_CHANNEL_JOIN") AtlasLootUserCounter = {}