From 71723715dadc4fee8ba573b671e30b15f2a942b8 Mon Sep 17 00:00:00 2001 From: F16Gaming Date: Mon, 30 Apr 2012 20:32:43 +0200 Subject: [PATCH] Fixed issue where players from the same realm got a dash ("-") added after their name. --- AddonComm.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AddonComm.lua b/AddonComm.lua index 022ec13..5c4f405 100644 --- a/AddonComm.lua +++ b/AddonComm.lua @@ -123,7 +123,7 @@ function AC:Receive(msgType, msg, channel, sender) if v then if not v:find("-") then local name, realm = UnitName(v) - if realm then + if realm and realm ~= "" then v = ("%s-%s"):format(name, realm) end end @@ -137,7 +137,7 @@ function AC:Receive(msgType, msg, channel, sender) if self.GroupMembers[1] ~= UnitName("player") then return end if not msg:find("-") then local name, realm = UnitName(msg) - if realm then + if realm and realm ~= "" then msg = ("%s-%s"):format(name, realm) end end @@ -192,7 +192,7 @@ function AC:Send(msgType, msg, channel, target) if type(target) == "string" then if not target:find("-") then local name, realm = UnitName(target) - if realm then + if realm and realm ~= "" then target = ("%s-%s"):format(name, realm) end end -- 1.7.9.5