From 121562dd510a824cb5b620ca103b712fc55e5134 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Tue, 1 Oct 2013 22:24:44 +0400 Subject: [PATCH] Elv is a son of a bitch >_< --- ElvUI_SLE/modules/chat/chat.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ElvUI_SLE/modules/chat/chat.lua b/ElvUI_SLE/modules/chat/chat.lua index 8868a1e..be0fa5d 100755 --- a/ElvUI_SLE/modules/chat/chat.lua +++ b/ElvUI_SLE/modules/chat/chat.lua @@ -144,13 +144,9 @@ 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, realm = UnitName(unit..i) - if(role) then - if(realm and realm ~= E.myrealm) then - lfgRoles[name.."-"..realm] = role - else - lfgRoles[name] = role - end + local name = GetUnitName(unit..i, true) + if(role and name) then + lfgRoles[name] = rolePaths[role] end end end -- 1.7.9.5