Added more information to inspect and fixed some bugs in the eavesdropping detection

This commit is contained in:
phr0z3nt04st
2010-07-06 19:10:28 -05:00
parent c6a4f2570f
commit 067e6d2a83
5 changed files with 131 additions and 23 deletions

View File

@@ -75,6 +75,10 @@
// for MD5 hash
#include "llmd5.h"
// <edit>
#include "llworld.h"
// </edit>
#define USE_SESSION_GROUPS 0
static bool sConnectingToAgni = false;
@@ -4903,16 +4907,24 @@ LLVoiceClient::participantState *LLVoiceClient::sessionState::addParticipant(con
// <edit>
if(nameFromsipURI(uri) != gVoiceClient->mAccountName)
{
// let us check to see if they are actually in the sim
LLViewerRegion* regionp = gAgent.getRegion();
if(regionp)
bool found = true;
for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin();
iter != LLWorld::getInstance()->getRegionList().end(); ++iter)
{
if(regionp->mMapAvatarIDs.find(id) == -1)
LLViewerRegion* regionp = *iter;
// let us check to see if they are actually in the sim
if(regionp)
{
// They are not in my list of people in my sim, they must be a spy.
gCacheName->getName(id, onAvatarNameLookup, NULL);
if(regionp->mMapAvatarIDs.find(id) != -1)
{
found = true;
break;
}
}
}
if(!found)
// They are not in my list of people in my sims, they must be a spy.
gCacheName->getName(id, onAvatarNameLookup, NULL);
}
// </edit>