diff options
Diffstat (limited to 'linden/indra/newview/llimview.cpp')
-rw-r--r-- | linden/indra/newview/llimview.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/linden/indra/newview/llimview.cpp b/linden/indra/newview/llimview.cpp index 02f6a82..cba442b 100644 --- a/linden/indra/newview/llimview.cpp +++ b/linden/indra/newview/llimview.cpp | |||
@@ -580,7 +580,7 @@ void LLIMMgr::addMessage( | |||
580 | // don't process muted IMs | 580 | // don't process muted IMs |
581 | if (LLMuteList::getInstance()->isMuted( | 581 | if (LLMuteList::getInstance()->isMuted( |
582 | other_participant_id, | 582 | other_participant_id, |
583 | LLMute::flagTextChat) && !LLMuteList::getInstance()->isLinden(from)) | 583 | LLMute::flagTextChat) && !LLMuteList::getInstance()->isGod(from)) |
584 | { | 584 | { |
585 | return; | 585 | return; |
586 | } | 586 | } |
@@ -681,6 +681,10 @@ void LLIMMgr::addMessage( | |||
681 | LLColor4 color; | 681 | LLColor4 color; |
682 | if (is_from_system) | 682 | if (is_from_system) |
683 | color = gSavedSettings.getColor4("SystemChatColor"); | 683 | color = gSavedSettings.getColor4("SystemChatColor"); |
684 | else if ((msg.substr(0, 3) == "\xe2\x80\xa7")) | ||
685 | { | ||
686 | color = gSavedSettings.getColor("IMEncryptedChatColor"); | ||
687 | } | ||
684 | else | 688 | else |
685 | { | 689 | { |
686 | std::string new_line = std::string(msg); | 690 | std::string new_line = std::string(msg); |
@@ -1363,7 +1367,7 @@ void LLIMMgr::saveIgnoreGroup() | |||
1363 | { | 1367 | { |
1364 | // llinfos << "saving ignore_groups.xml" << llendl; | 1368 | // llinfos << "saving ignore_groups.xml" << llendl; |
1365 | 1369 | ||
1366 | std::string user_dir = gDirUtilp->getLindenUserDir(true); | 1370 | std::string user_dir = gDirUtilp->getViewerUserDir(true); |
1367 | if (!user_dir.empty()) | 1371 | if (!user_dir.empty()) |
1368 | { | 1372 | { |
1369 | std::string filename = gDirUtilp->getExpandedFilename(LL_PATH_PER_SL_ACCOUNT, "ignore_groups.xml"); | 1373 | std::string filename = gDirUtilp->getExpandedFilename(LL_PATH_PER_SL_ACCOUNT, "ignore_groups.xml"); |
@@ -1655,7 +1659,7 @@ public: | |||
1655 | name, | 1659 | name, |
1656 | LLMute::flagTextChat); | 1660 | LLMute::flagTextChat); |
1657 | 1661 | ||
1658 | BOOL is_linden = LLMuteList::getInstance()->isLinden(name); | 1662 | BOOL is_god = LLMuteList::getInstance()->isGod(name); |
1659 | std::string separator_string(": "); | 1663 | std::string separator_string(": "); |
1660 | int message_offset=0; | 1664 | int message_offset=0; |
1661 | 1665 | ||
@@ -1667,11 +1671,11 @@ public: | |||
1667 | message_offset = 3; | 1671 | message_offset = 3; |
1668 | } | 1672 | } |
1669 | 1673 | ||
1670 | chat.mMuted = is_muted && !is_linden; | 1674 | chat.mMuted = is_muted && !is_god; |
1671 | chat.mFromID = from_id; | 1675 | chat.mFromID = from_id; |
1672 | chat.mFromName = name; | 1676 | chat.mFromName = name; |
1673 | 1677 | ||
1674 | if (!is_linden && (is_busy || is_muted)) | 1678 | if (!is_god && (is_busy || is_muted)) |
1675 | { | 1679 | { |
1676 | return; | 1680 | return; |
1677 | } | 1681 | } |