Quantcast

Replacing T:<bsNumber> as the toon name if friend is in HoTS

Darthpred [02-16-15 - 19:48]
Replacing T:<bsNumber> as the toon name if friend is in HoTS
Replacing with "" so the column will appear empty
Filename
ElvUI_SLE/modules/sledatatexts/friends.lua
diff --git a/ElvUI_SLE/modules/sledatatexts/friends.lua b/ElvUI_SLE/modules/sledatatexts/friends.lua
index ab227be..9c27367 100644
--- a/ElvUI_SLE/modules/sledatatexts/friends.lua
+++ b/ElvUI_SLE/modules/sledatatexts/friends.lua
@@ -420,9 +420,13 @@ function LDB.OnEnter(self)
 					line = tooltip:AddLine()
 					line = tooltip:SetCell(line, 1, ColoredLevel(player["LEVEL"]))
 					line = tooltip:SetCell(line, 2, player["STATUS"])
-					line = tooltip:SetCell(line, 3,
+					if player["CLIENT"] ~= "Hero" then
+						line = tooltip:SetCell(line, 3,
 						string.format("|cff%s%s",CLASS_COLORS[player["CLASS"]] or "B8B8B8", player["TOONNAME"] .. "|r")..
 						(inGroup(player["TOONNAME"]) and GROUP_CHECKMARK or ""))
+					else
+						line = tooltip:SetCell(line, 3, string.format(""))
+					end
 					line = tooltip:SetCell(line, 4,
 						"|cff82c5ff" .. player["GIVENNAME"] .. "|r" .. broadcast_flag)