[LLIMMgr/LLIMPanel Revision] Clean up ignored groups logic

This commit is contained in:
Inusaito Sayori
2013-10-10 04:08:01 -04:00
parent 402f4f7068
commit a179f95057

View File

@@ -450,29 +450,9 @@ void LLIMMgr::addMessage(
// create IM window as necessary
if(!floater)
{
if (gIMMgr->getIgnoreGroupListCount() > 0 && gAgent.isInGroup(session_id))
{
// Check to see if we're blocking this group's chat
LLGroupData* group_data = NULL;
// Search for this group in the agent's groups list
LLDynamicArray<LLGroupData>::iterator i;
for (i = gAgent.mGroups.begin(); i != gAgent.mGroups.end(); i++)
{
if (i->mID == session_id)
{
group_data = &*i;
break;
}
}
// If the group is in our list then return
if (group_data && gIMMgr->getIgnoreGroup(group_data->mID))
{
return;
}
}
// Return now if we're blocking this group's chat
if (getIgnoreGroup(session_id) && gAgent.isInGroup(session_id))
return;
std::string name = from;
if(!session_name.empty() && session_name.size()>1)