Skip to content

Commit

Permalink
Fix battle.net real name friends
Browse files Browse the repository at this point in the history
  • Loading branch information
solocommand committed Oct 20, 2020
1 parent 0bba40f commit 932de49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ function addon:parseRealID(filterClients)
local friend = {
bnetAccountID = accountInfo.bnetAccountID,
accountName = accountInfo.accountName,
battleTag = accountInfo.battleTag,
battleTag = ternary(accountInfo.isBattleTagFriend, accountInfo.battleTag, accountInfo.accountName),
isAFK = accountInfo.gameAccountInfo.isAFK,
isDND = accountInfo.gameAccountInfo.isDND,
broadcastText = accountInfo.broadcastText,
Expand Down Expand Up @@ -484,7 +484,7 @@ function addon:renderBattleNet(tooltip, friends, isBnetClient, collapseVar)
end

-- Full name
left = left.."[|cff00A2E8"..(friend.battleTag or friend.accountName).."|r] "
left = left.."[|cff00A2E8"..friend.battleTag.."|r] "

-- Status
left = left..getStatusText(playerStatus).." "
Expand Down

0 comments on commit 932de49

Please sign in to comment.