diff options
author | McCabe Maxsted | 2009-10-08 14:36:57 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-10-08 14:36:57 -0700 |
commit | f1616b1196f95c2768de35b0aa80101b57429d59 (patch) | |
tree | c8576773f56134788918f8f4341311debddc5d07 /linden/indra/newview/llviewermessage.cpp | |
parent | Fixed money change notification happening after logout/login (diff) | |
download | meta-impy-f1616b1196f95c2768de35b0aa80101b57429d59.zip meta-impy-f1616b1196f95c2768de35b0aa80101b57429d59.tar.gz meta-impy-f1616b1196f95c2768de35b0aa80101b57429d59.tar.bz2 meta-impy-f1616b1196f95c2768de35b0aa80101b57429d59.tar.xz |
Don't show lldialog boxes from muted avatars anymore
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
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); |