Put in some race revealing warning messages triggered when a user rezzes a script to prim inventory

afrisby
Justin Clarke Casey 2007-12-22 14:34:05 +00:00
parent b64deca32f
commit e52c217e44
1 changed files with 30 additions and 0 deletions

View File

@ -440,6 +440,12 @@ namespace OpenSim.Region.Environment.Scenes
}
}
/// <summary>
/// Rez a script into a prim's inventory
/// </summary>
/// <param name="remoteClient"></param>
/// <param name="itemID"> </param>
/// <param name="localID"></param>
public void RezScript(IClientAPI remoteClient, LLUUID itemID, uint localID)
{
CachedUserInfo userInfo = CommsManager.UserProfileCacheService.GetUserDetails(remoteClient.AgentId);
@ -482,8 +488,32 @@ namespace OpenSim.Region.Environment.Scenes
group.AddInventoryItem(remoteClient, localID, item, copyID);
group.GetProperites(remoteClient);
}
else
{
MainLog.Instance.Warn(
"PRIMINVENTORY",
"Could not rez item {0} into prim {1}"
+ " because the prim could not be found in the region!",
item.inventoryName,
localID);
}
}
else
{
MainLog.Instance.Warn(
"PRIMINVENTORY",
"Could not rez item {0} into prim {1}"
+ " because the item asset {2} could not be found!",
item.inventoryName,
localID,
item.assetID);
}
}
else
{
MainLog.Instance.Warn(
"PRIMINVENTORY", "Could not find script inventory item {0} to rez!", itemID);
}
}
}
}