So i've been looking around at a couple of custom addons people made to attempt this (due to a patch change that brought it all back;
Is there a way I could modify either of these LUA's to hide the -realmname for 2 realms
EU Terenas and EU Emerald Dream?
Code:
local function RemoveCurrentRealmName(self, event, msg, author, ...) --code from Epicgrim remade by Tukz
local realmName = string.gsub(GetRealmName(), " ", "")
if msg:find("-" .. realmName) then
return false, gsub(msg, "%-"..realmName, ""), author, ...
end
end
ChatFrame_AddMessageEventFilter("CHAT_MSG_SYSTEM", RemoveCurrentRealmName)
or
Code:
local a = getmetatable(DEFAULT_CHAT_FRAME).__index.AddMessage
getmetatable(DEFAULT_CHAT_FRAME).__index.AddMessage = function(s,t,...)
return a(s,t:gsub("|Hplayer:(.-)|h%[([^-]+).-%]","|Hplayer:%1|h[%2]"),...)
end