From 375f8cce345524acd497ee2cae0c50b4d7c3cba3 Mon Sep 17 00:00:00 2001 From: BlueWall Date: Thu, 5 Mar 2015 16:58:02 -0500 Subject: Give llGiveInventory a way to querry Hypergrid visitors so network vendors are able to give items to Hg visitors --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Shared') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 61756af..054b8e3 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -4163,8 +4163,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api if (account == null) { - Error("llGiveInventory", "Can't find destination '" + destId.ToString() + "'"); - return; + GridUserInfo info = World.GridUserService.GetGridUserInfo(destId.ToString()); + if(info == null || info.Online == false) + { + Error("llGiveInventory", "Can't find destination '" + destId.ToString() + "'"); + return; + } } } // destination is an avatar -- cgit v1.1