From a7886443c5aa9f19fdb3e4f227a713d3590e9494 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Fri, 1 Feb 2019 06:51:58 -0500 Subject: [PATCH] Do not color the : after names in local chat as a link! --- indra/newview/llfloaterchat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/newview/llfloaterchat.cpp b/indra/newview/llfloaterchat.cpp index ae912c8d4..87db308dd 100644 --- a/indra/newview/llfloaterchat.cpp +++ b/indra/newview/llfloaterchat.cpp @@ -213,8 +213,8 @@ void add_timestamped_line(LLViewerTextEditor* edit, LLChat chat, const LLColor4& if (!chat.mURL.empty() && (line.length() > chat.mFromName.length() && line.find(chat.mFromName,0) == 0)) { - std::string start_line = line.substr(0, chat.mFromName.length() + 1); - line = line.substr(chat.mFromName.length() + 1); + std::string start_line = chat.mFromName; + line = line.substr(chat.mFromName.length()); LLStyleSP sourceStyle = LLStyleMap::instance().lookup(chat.mFromID, chat.mURL); sourceStyle->mItalic = is_irc; edit->appendText(start_line, false, prepend_newline, sourceStyle);