From 5c4097786b8c416947215eca47e79aaf57d3b3fc Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sun, 23 Feb 2014 12:17:52 +0400 Subject: [PATCH] Kinda more fixes from Simply --- ElvUI_SLE/modules/chat/chat.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ElvUI_SLE/modules/chat/chat.lua b/ElvUI_SLE/modules/chat/chat.lua index ae6e361..113ff1e 100755 --- a/ElvUI_SLE/modules/chat/chat.lua +++ b/ElvUI_SLE/modules/chat/chat.lua @@ -751,8 +751,8 @@ function CH:CheckLFGRoles() for i=1, GetNumGroupMembers() do if(UnitExists(unit..i) and not UnitIsUnit(unit..i, "player")) then role = UnitGroupRolesAssigned(unit..i) - local name = GetUnitName(unit..i, true) - local isSame = UnitIsSameServer("player", unit..i) and name..'-'..Myrealm;lfgRoles[isSame or name] = rolePaths[role] + local name, realm = GetUnitName(unit..i, true) + local name = realm and name..'-'..realm or name..'-'..Myrealm;lfgRoles[name] = rolePaths[role] if(role and name) then lfgRoles[name] = rolePaths[role] end -- 1.7.9.5