Fix assert caused by misuse of ScriptTeleportRequest message block data
Thanks to Nomade and Esmeralda for catching this one!
This commit is contained in:
@@ -8058,14 +8058,9 @@ void process_initiate_download(LLMessageSystem* msg, void**)
|
|||||||
void process_script_teleport_request(LLMessageSystem* msg, void**)
|
void process_script_teleport_request(LLMessageSystem* msg, void**)
|
||||||
{
|
{
|
||||||
if (!gSavedSettings.getBOOL("ScriptsCanShowUI")) return;
|
if (!gSavedSettings.getBOOL("ScriptsCanShowUI")) return;
|
||||||
|
|
||||||
// NaCl - Antispam
|
// NaCl - Antispam
|
||||||
{
|
if (is_spam_filtered(IM_COUNT, false, false)) return;
|
||||||
LLUUID object_id, owner_id;
|
|
||||||
msg->getUUID( "Data", "ObjectID", object_id);
|
|
||||||
msg->getUUID( "Data", "OwnerID", owner_id);
|
|
||||||
|
|
||||||
if (owner_id.isNull() ? is_spam_filtered(IM_COUNT, LLAvatarActions::isFriend(object_id), object_id == gAgentID) : is_spam_filtered(IM_COUNT, LLAvatarActions::isFriend(owner_id), owner_id == gAgentID)) return;
|
|
||||||
}
|
|
||||||
// NaCl End
|
// NaCl End
|
||||||
|
|
||||||
std::string object_name;
|
std::string object_name;
|
||||||
|
|||||||
Reference in New Issue
Block a user