Give llGiveInventory a way to querry Hypergrid visitors so network vendors are able to give items to Hg visitors

inv-download
BlueWall 2015-03-05 16:58:02 -05:00
parent 0ea6977013
commit 375f8cce34
1 changed files with 6 additions and 2 deletions

View File

@ -4163,8 +4163,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (account == null) if (account == null)
{ {
Error("llGiveInventory", "Can't find destination '" + destId.ToString() + "'"); GridUserInfo info = World.GridUserService.GetGridUserInfo(destId.ToString());
return; if(info == null || info.Online == false)
{
Error("llGiveInventory", "Can't find destination '" + destId.ToString() + "'");
return;
}
} }
} }
// destination is an avatar // destination is an avatar