From 7acdaa085d70d657a763f23be8045b47f2b12c41 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 14 Oct 2022 13:17:27 -0600 Subject: [PATCH] unknown object check on friends/guild/ignore --- Core.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core.lua b/Core.lua index 70f0b98..06d62c3 100644 --- a/Core.lua +++ b/Core.lua @@ -2033,21 +2033,21 @@ function addon.UpdateFriends() --Update for the current character for i = 1, C_FriendList.GetNumFriends() do local name = C_FriendList.GetFriendInfoByIndex(i).name - if name then + if name and name ~= _G.UKNOWNOBJECT then name = name:gsub("%-.+", "") addon.db.global.friends[myserver][myname][name] = true end end for i = 1, C_FriendList.GetNumIgnores() do local name = C_FriendList.GetIgnoreName(i) - if name then + if name and name ~= _G.UKNOWNOBJECT then name = name:gsub("%-.+", "") addon.db.global.ignores[myserver][myname][name] = true end end for i = 1, GetNumGuildMembers() do local name = GetGuildRosterInfo(i) - if name then + if name and name ~= _G.UKNOWNOBJECT then name = name:gsub("%-.+", "") addon.db.global.guilds[myserver][myguild][name] = true end