diff options
author | McCabe Maxsted | 2010-06-03 01:32:45 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:43:29 -0500 |
commit | b96be7f613dfe0a41649990a87baa13d29bd5efc (patch) | |
tree | d1c0e0fc2132b8f697bc6d4c85b7f939336de9af /linden/indra/newview | |
parent | Fixed typo in ao template (diff) | |
download | meta-impy-b96be7f613dfe0a41649990a87baa13d29bd5efc.zip meta-impy-b96be7f613dfe0a41649990a87baa13d29bd5efc.tar.gz meta-impy-b96be7f613dfe0a41649990a87baa13d29bd5efc.tar.bz2 meta-impy-b96be7f613dfe0a41649990a87baa13d29bd5efc.tar.xz |
Fixed your own name being highlighted in chat history
Diffstat (limited to 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/llfloaterchat.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linden/indra/newview/llfloaterchat.cpp b/linden/indra/newview/llfloaterchat.cpp index 3681a6f..994776e 100644 --- a/linden/indra/newview/llfloaterchat.cpp +++ b/linden/indra/newview/llfloaterchat.cpp | |||
@@ -208,6 +208,7 @@ void add_timestamped_line(LLViewerTextEditor* edit, LLChat chat, const LLColor4& | |||
208 | // extract out the sender name and replace it with the hotlinked name. | 208 | // extract out the sender name and replace it with the hotlinked name. |
209 | if (chat.mSourceType == CHAT_SOURCE_AGENT && | 209 | if (chat.mSourceType == CHAT_SOURCE_AGENT && |
210 | chat.mFromID != LLUUID::null && | 210 | chat.mFromID != LLUUID::null && |
211 | chat.mFromID != gAgent.getID() && | ||
211 | // [RLVa] - Version: 1.22.11 | Checked: 2009-07-08 (RLVa-1.0.0e) | 212 | // [RLVa] - Version: 1.22.11 | Checked: 2009-07-08 (RLVa-1.0.0e) |
212 | (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) ) | 213 | (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) ) |
213 | // [/RLVa] | 214 | // [/RLVa] |
@@ -218,10 +219,10 @@ void add_timestamped_line(LLViewerTextEditor* edit, LLChat chat, const LLColor4& | |||
218 | // If the chat line has an associated url, link it up to the name. | 219 | // If the chat line has an associated url, link it up to the name. |
219 | if ((!chat.mURL.empty() && line.length() > chat.mFromName.length()) && | 220 | if ((!chat.mURL.empty() && line.length() > chat.mFromName.length()) && |
220 | (line.find(chat.mFromName,0) == 0 || (line.find(chat.mFromName,0) == 4 && | 221 | (line.find(chat.mFromName,0) == 0 || (line.find(chat.mFromName,0) == 4 && |
221 | color == gSavedSettings.getColor4("ObjectIMColor")))) // hack to make sure IMs in chat history don't hightlight | 222 | color == gSavedSettings.getColor4("ObjectIMColor")))) // hack to make sure IMs in chat history don't hightlight -- MC |
222 | { | 223 | { |
223 | std::string start_line; | 224 | std::string start_line; |
224 | if (line.find(chat.mFromName,0) == 4) // IMs are prefaced with "IM: " | 225 | if (line.find(chat.mFromName,0) == 4) // IMs are prefaced with "IM: " -- MC |
225 | { | 226 | { |
226 | start_line = line.substr(4, chat.mFromName.length() + 1); | 227 | start_line = line.substr(4, chat.mFromName.length() + 1); |
227 | std::string source = line.substr(0, 4); | 228 | std::string source = line.substr(0, 4); |