Skip to content

Commit

Permalink
Fixed invite bnet friend.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wetxius committed Mar 23, 2016
1 parent 9a2c74f commit 24bd06a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ShestakUI/Libs/LiteStats/LiteStats.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ if friends.enabled then

for i = 1, total do
local presenceID, presenceName, battleTag, _, toonName, toonID, client, isOnline, _, isAFK, isDND, _, noteText = BNGetFriendInfo(i)
local _, _, _, realmName, _, faction, race, class, _, zoneName, level = BNGetGameAccountInfo(presenceID)
local _, _, _, realmName, _, faction, race, class, _, zoneName, level = BNGetGameAccountInfo(toonID or presenceID)
for k, v in pairs(LOCALIZED_CLASS_NAMES_MALE) do if class == v then class = k end end
if GetLocale() ~= "enUS" then
for k, v in pairs(LOCALIZED_CLASS_NAMES_FEMALE) do if class == v then class = k end end
Expand Down Expand Up @@ -1296,6 +1296,7 @@ if friends.enabled then
GameTooltip:AddLine(BATTLENET_FRIEND)
for i = 1, BNtotal do
_, presenceName, _, _, toonName, toonID, client, isOnline, _, isAFK, isDND = BNGetFriendInfo(i)
if not toonName then toonName = presenceName end
if not isOnline then break end
if isAFK then
status = "|cffE7E716"..L_CHAT_AFK.."|r"
Expand Down

0 comments on commit 24bd06a

Please sign in to comment.