socialmod: fix broken friendlists

This commit is contained in:
shagu
2017-12-03 18:14:38 +01:00
parent 65360d1bd6
commit 2d958a74b1
+2
View File
@@ -46,6 +46,8 @@ pfUI:RegisterModule("socialmod", function ()
for i=1, FRIENDS_TO_DISPLAY do
local name, level, class, zone, connected = GetFriendInfo(off + i)
if not name then break end
if connected then
local ccolor = RAID_CLASS_COLORS[L["class"][class]] or { 1, 1, 1 }
local lcolor = GetDifficultyColor(tonumber(level)) or { 1, 1, 1 }