Do this better

This commit is contained in:
Lirusaito
2019-02-03 10:05:41 -05:00
parent 50f7893b2f
commit c03250f09b

View File

@@ -211,7 +211,7 @@ void add_timestamped_line(LLViewerTextEditor* edit, LLChat chat, const LLColor4&
bool is_irc = italicize && chat.mChatStyle == CHAT_STYLE_IRC;
// If the chat line has an associated url, link it up to the name.
if (!chat.mURL.empty()
&& (!chat.mFromName.empty() && line.find(chat.mFromName,0) == 0))
&& boost::algorithm::starts_with(line, chat.mFromName))
{
line = line.substr(chat.mFromName.length());
LLStyleSP sourceStyle = LLStyleMap::instance().lookup(chat.mFromID, chat.mURL);