diff options
author | BlueWall | 2015-03-05 16:58:02 -0500 |
---|---|---|
committer | BlueWall | 2015-03-05 16:58:02 -0500 |
commit | 375f8cce345524acd497ee2cae0c50b4d7c3cba3 (patch) | |
tree | 40939e278cb002c1390fe5bf45dc28e72e5078b4 /OpenSim/Region/ScriptEngine/Shared | |
parent | solving HG IM, HGFriends issues based on falsified GridUser data (diff) | |
download | opensim-SC-375f8cce345524acd497ee2cae0c50b4d7c3cba3.zip opensim-SC-375f8cce345524acd497ee2cae0c50b4d7c3cba3.tar.gz opensim-SC-375f8cce345524acd497ee2cae0c50b4d7c3cba3.tar.bz2 opensim-SC-375f8cce345524acd497ee2cae0c50b4d7c3cba3.tar.xz |
Give llGiveInventory a way to querry Hypergrid visitors so network vendors are able to give items to Hg visitors
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 |
1 files changed, 6 insertions, 2 deletions
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 | |||
4163 | 4163 | ||
4164 | if (account == null) | 4164 | if (account == null) |
4165 | { | 4165 | { |
4166 | Error("llGiveInventory", "Can't find destination '" + destId.ToString() + "'"); | 4166 | GridUserInfo info = World.GridUserService.GetGridUserInfo(destId.ToString()); |
4167 | return; | 4167 | if(info == null || info.Online == false) |
4168 | { | ||
4169 | Error("llGiveInventory", "Can't find destination '" + destId.ToString() + "'"); | ||
4170 | return; | ||
4171 | } | ||
4168 | } | 4172 | } |
4169 | } | 4173 | } |
4170 | // destination is an avatar | 4174 | // destination is an avatar |