diff options
Diffstat (limited to 'OpenSim')
-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 |