Skip to content

Commit

Permalink
unknown object check on friends/guild/ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
TannerShmoog committed Oct 14, 2022
1 parent 5f8248d commit 7acdaa0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7acdaa0

Please sign in to comment.