mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Give llGiveInventory a way to querry Hypergrid visitors so network vendors are able to give items to Hg visitors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user