From 10029687424e24b4bcd7659d3e59776fb0c1ce85 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sun, 16 Aug 2020 20:30:25 +0200 Subject: [PATCH] AntiSpam: Only check for source ownership if the source is actually an object --- indra/newview/NACLantispam.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/indra/newview/NACLantispam.cpp b/indra/newview/NACLantispam.cpp index 9cee74f82c..5fee4d0621 100644 --- a/indra/newview/NACLantispam.cpp +++ b/indra/newview/NACLantispam.cpp @@ -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;