AntiSpam: Only check for source ownership if the source is actually an object

master
Ansariel 2020-08-16 20:30:25 +02:00
parent d34223da35
commit 1002968742
1 changed files with 6 additions and 3 deletions

View File

@ -359,10 +359,13 @@ bool NACLAntiSpamRegistry::checkQueue(EAntispamQueue queue, const LLUUID& source
return false;
}
LLViewerObject* obj = gObjectList.findObject(source);
if (obj && obj->permYouOwner() && !useAntiSpamMine)
if (sourcetype == ANTISPAM_SOURCE_OBJECT)
{
return false;
LLViewerObject* obj = gObjectList.findObject(source);
if (obj && obj->permYouOwner() && !useAntiSpamMine)
{
return false;
}
}
S32 result = 0;