Quantcast

Kinda more fixes from Simply

Darthpred [02-23-14 - 08:17]
Kinda more fixes from Simply
Filename
ElvUI_SLE/modules/chat/chat.lua
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