Thread Tools Display Modes
08-22-15, 11:48 AM   #1
Uggers
A Fallenroot Satyr
 
Uggers's Avatar
Join Date: May 2008
Posts: 26
Hide Merged Realm in Chat

Is there any addon that can hide the Merged Realm in chat?

So when people chat on my merged realm I don't see the -Terenas -EmeraldDream bit, but if I actually leave our connected realm it shows others?
  Reply With Quote
08-23-15, 07:35 AM   #2
Uggers
A Fallenroot Satyr
 
Uggers's Avatar
Join Date: May 2008
Posts: 26
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
  Reply With Quote
08-23-15, 11:48 AM   #3
Voyager
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 22
What will you do if someone exists on Terenas or Emerald who has the exact same name and class as one of the people on your own realm? It would then look like someone is talking to himself, or one could pose as the other to you, if you hide both their realm names.
  Reply With Quote
08-23-15, 01:26 PM   #4
Uggers
A Fallenroot Satyr
 
Uggers's Avatar
Join Date: May 2008
Posts: 26
Yeah but you could say the same to the various addons that strip the realm name in its entirety,

I just really want to remove the 2 realms that are cross realms. Most of the people I speak to are all on my RealID anyway, so its a risk i'm willing to take
  Reply With Quote
08-24-15, 07:19 AM   #5
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Quick modification of the code you posted to only remove some realm names:
Code:
local remove = {
	"(|Hplayer:.-|h%[[^-]+)%-EmeraldDream",
	"(|Hplayer:.-|h%[[^-]+)%-Terenas",
}
local AddMessage = getmetatable(DEFAULT_CHAT_FRAME).__index.AddMessage
getmetatable(DEFAULT_CHAT_FRAME).__index.AddMessage = function(self, message, ...)
	for i = 1, #remove do
		message = gsub(message, remove[i], "%1")
	end
	return AddMessage(self, message, ...)
end
Originally Posted by Voyager View Post
What will you do if someone exists on Terenas or Emerald who has the exact same name and class as one of the people on your own realm? It would then look like someone is talking to himself, or one could pose as the other to you, if you hide both their realm names.
I've been removing all realm names from chat ever since they were introduced, and have never once been even remotely confused. The odds of two players from different realms with the same name and class chatting with each other, or even being online at the same time, is so low as to be effectively zero, I think. Really not a "problem" worth worrying about.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Hide Merged Realm in Chat

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off