From 21f39471f1d568c47d481d700d26db732dfa681d Mon Sep 17 00:00:00 2001 From: Shyotl Date: Sun, 25 Sep 2011 18:19:27 -0500 Subject: [PATCH] Allow muting of objects with no name through the chat display. --- indra/newview/llfloaterchat.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/indra/newview/llfloaterchat.cpp b/indra/newview/llfloaterchat.cpp index eac5187f0..b3693c5de 100644 --- a/indra/newview/llfloaterchat.cpp +++ b/indra/newview/llfloaterchat.cpp @@ -220,6 +220,11 @@ void add_timestamped_line(LLViewerTextEditor* edit, LLChat chat, const LLColor4& chat.mURL = llformat("secondlife:///app/agent/%s/about",chat.mFromID.asString().c_str()); } + if(chat.mSourceType == CHAT_SOURCE_OBJECT && !chat.mFromName.length()) + { + chat.mFromName = "(no name)"; + line = chat.mFromName + line; + } // If the chat line has an associated url, link it up to the name. if (!chat.mURL.empty() && (line.length() > chat.mFromName.length() && line.find(chat.mFromName,0) == 0))