diff options
-rw-r--r-- | ChangeLog.txt | 5 | ||||
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 07701d5..d7122fd 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -1,5 +1,10 @@ | |||
1 | 2009-10-08 McCabe Maxsted <hakushakukun@gmail.com> | 1 | 2009-10-08 McCabe Maxsted <hakushakukun@gmail.com> |
2 | 2 | ||
3 | * Don't show lldialog boxes from muted avatars anymore. | ||
4 | |||
5 | modified: linden/indra/newview/llviewermessage.cpp | ||
6 | |||
7 | |||
3 | * Fixed money change notification happening after logout/login. | 8 | * Fixed money change notification happening after logout/login. |
4 | 9 | ||
5 | modified: linden/indra/newview/llviewermessage.cpp | 10 | modified: linden/indra/newview/llviewermessage.cpp |
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index 88f6b36..f460996 100644 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -5470,6 +5470,21 @@ void process_script_dialog(LLMessageSystem* msg, void**) | |||
5470 | msg->getString("Data", "Message", message); | 5470 | msg->getString("Data", "Message", message); |
5471 | msg->getS32("Data", "ChatChannel", info->mChatChannel); | 5471 | msg->getS32("Data", "ChatChannel", info->mChatChannel); |
5472 | 5472 | ||
5473 | // Don't show lldialog boxes from muted avs -- McCabe | ||
5474 | if (!first_name.empty()) | ||
5475 | { | ||
5476 | std::string agent_name = first_name + " " + last_name; | ||
5477 | std::vector<LLMute> mutes = LLMuteList::getInstance()->getMutes(); | ||
5478 | for (U32 i = 0; i < mutes.size(); i++) | ||
5479 | { | ||
5480 | if (mutes[i].mName == agent_name) | ||
5481 | { | ||
5482 | delete info; | ||
5483 | return; | ||
5484 | } | ||
5485 | } | ||
5486 | } | ||
5487 | |||
5473 | // unused for now | 5488 | // unused for now |
5474 | LLUUID image_id; | 5489 | LLUUID image_id; |
5475 | msg->getUUID("Data", "ImageID", image_id); | 5490 | msg->getUUID("Data", "ImageID", image_id); |