From 5b5b203445df85c5077198c4240b70f9804906bc Mon Sep 17 00:00:00 2001 From: Flamanis Date: Sun, 7 Jul 2024 06:03:36 -0500 Subject: [PATCH] Avoid using a table and just use 3 distinct locals for anonymization --- frames/window_eventtracker.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frames/window_eventtracker.lua b/frames/window_eventtracker.lua index a91f1e4e4..db8f2c100 100644 --- a/frames/window_eventtracker.lua +++ b/frames/window_eventtracker.lua @@ -499,9 +499,11 @@ function Details:CreateEventTrackerFrame(parentObject, name) return name end - local guid_table = {string.split('-', guid)} + -- Example GUID: Player-0301-0D23FC41 + -- We only care about the last part + local _,_, guid_end = string.split('-', guid) - return guid_table[#guid_table] + return guid_end end local add_role_and_class_color = function(unitName, unitSerial)