Commit 7af9d790 authored by Ivaria's avatar Ivaria

Removed deprecated Blizzard APIs GetNumFriends/GetFriendInfo

parent 7151e5e6
......@@ -39,13 +39,13 @@ function VUHDO_initBuddyNameModel()
end
-- Friends
local tNumFriends = GetNumFriends();
local tIsOnline;
local tName;
local tNumFriends = C_FriendList.GetNumFriends();
local tFriendInfo;
for tCnt = 1, tNumFriends do
tName, _, _, _, tIsOnline = GetFriendInfo(tCnt);
if (tIsOnline) then
VUHDO_addBuddyNameToComboModel(tName);
tFriendInfo = C_FriendList.GetFriendInfoByIndex(tCnt);
if (tFriendInfo.connected) then
VUHDO_addBuddyNameToComboModel(tFriendInfo.name);
end
end
......@@ -102,4 +102,4 @@ function VUHDO_optionsExecShare(aPanel)
_G[aPanel:GetAttribute("model")[1]](VUHDO_SELECTED_COMBO_BUDDY, tSelection);
return true;
end
\ No newline at end of file
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment