diff options
Diffstat (limited to 'linden/indra/newview/llfloaterchat.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterchat.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/newview/llfloaterchat.cpp b/linden/indra/newview/llfloaterchat.cpp index cc86fce..79c4aa6 100644 --- a/linden/indra/newview/llfloaterchat.cpp +++ b/linden/indra/newview/llfloaterchat.cpp | |||
@@ -213,9 +213,9 @@ void add_timestamped_line(LLViewerTextEditor* edit, LLChat chat, const LLColor4& | |||
213 | } | 213 | } |
214 | 214 | ||
215 | // If the chat line has an associated url, link it up to the name. | 215 | // If the chat line has an associated url, link it up to the name. |
216 | if (!chat.mURL.empty() && | 216 | if ((!chat.mURL.empty() && line.length() > chat.mFromName.length()) && |
217 | (line.length() > chat.mFromName.length() && | 217 | (line.find(chat.mFromName,0) == 0 || (line.find(chat.mFromName,0) == 4 && |
218 | (line.find(chat.mFromName,0) == 4 || line.find(chat.mFromName,0) == 0))) | 218 | color == gSavedSettings.getColor4("ObjectIMColor")))) // hack to make sure IMs in chat history don't hightlight |
219 | { | 219 | { |
220 | std::string start_line; | 220 | std::string start_line; |
221 | if (line.find(chat.mFromName,0) == 4) // IMs are prefaced with "IM: " | 221 | if (line.find(chat.mFromName,0) == 4) // IMs are prefaced with "IM: " |