Minor change: Only save antispam data if we actually sent a request

Ansariel 2014-01-29 18:32:32 +01:00
parent a2024bfb69
commit 7e72aefda5
1 changed files with 8 additions and 1 deletions

View File

@ -401,7 +401,8 @@ bool NACLAntiSpamRegistry::checkQueue(EAntispamQueue queue, const LLUUID& source
if (sourcetype == ANTISPAM_SOURCE_OBJECT)
{
mObjectData[source] = data;
bool sent = false;
for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin();
iter != LLWorld::getInstance()->getRegionList().end(); ++iter)
{
@ -416,8 +417,14 @@ bool NACLAntiSpamRegistry::checkQueue(EAntispamQueue queue, const LLUUID& source
gMessageSystem->addU32Fast(_PREHASH_RequestFlags, 0);
gMessageSystem->addUUIDFast(_PREHASH_ObjectID, source);
gMessageSystem->sendReliable(region->getHost());
sent = true;
}
}
if (sent)
{
mObjectData[source] = data;
}
}
else if (sourcetype == ANTISPAM_SOURCE_AGENT)
{