diff options
author | elektrahesse | 2010-10-01 01:52:33 +0200 |
---|---|---|
committer | elektrahesse | 2010-10-01 01:52:33 +0200 |
commit | 2d366069742c8df225faaa3ad234aac7d24b2d38 (patch) | |
tree | d8dae1afb300f7460cf4c4b3fb64bfb654371529 /linden/indra | |
parent | Fix for "about landmark" crash when invoking it on a freshly received landmark. (diff) | |
download | meta-impy-2d366069742c8df225faaa3ad234aac7d24b2d38.zip meta-impy-2d366069742c8df225faaa3ad234aac7d24b2d38.tar.gz meta-impy-2d366069742c8df225faaa3ad234aac7d24b2d38.tar.bz2 meta-impy-2d366069742c8df225faaa3ad234aac7d24b2d38.tar.xz |
Enabled friends chat and keywords highlighting for both IMs and Group IMs.
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/newview/llimview.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/linden/indra/newview/llimview.cpp b/linden/indra/newview/llimview.cpp index 12a26f9..a6eaeb3 100644 --- a/linden/indra/newview/llimview.cpp +++ b/linden/indra/newview/llimview.cpp | |||
@@ -548,19 +548,13 @@ LLColor4 get_extended_text_color(const LLUUID session_id, const LLUUID other_par | |||
548 | { | 548 | { |
549 | if (gSavedSettings.getBOOL("HighlightOwnNameInIM") && (other_partecipant_id != LLUUID::null)) | 549 | if (gSavedSettings.getBOOL("HighlightOwnNameInIM") && (other_partecipant_id != LLUUID::null)) |
550 | { | 550 | { |
551 | LLDynamicArray<LLGroupData>::iterator i; | 551 | if (LLFloaterChat::isOwnNameInText(msg)) |
552 | for (i = gAgent.mGroups.begin(); i != gAgent.mGroups.end(); i++) | 552 | return gSavedSettings.getColor4("OwnNameChatColor"); |
553 | { | ||
554 | if (i->mID == session_id) | ||
555 | { | ||
556 | if (LLFloaterChat::isOwnNameInText(msg)) | ||
557 | return gSavedSettings.getColor4("OwnNameChatColor"); | ||
558 | else | ||
559 | break; | ||
560 | } | ||
561 | } | ||
562 | } | 553 | } |
563 | 554 | ||
555 | if (gSavedSettings.getBOOL("HighlightFriendsChat") && is_agent_friend(other_partecipant_id)) | ||
556 | return gSavedSettings.getColor4("FriendsChatColor"); | ||
557 | |||
564 | return defaultColor; | 558 | return defaultColor; |
565 | } | 559 | } |
566 | 560 | ||