Add "Notecard saved" message to saves of notecards into prims

0.6.0-stable
Melanie Thielker 2008-09-26 18:16:13 +00:00
parent e5db6a75d0
commit 4a69791875
1 changed files with 16 additions and 0 deletions

View File

@ -394,6 +394,22 @@ namespace OpenSim.Region.Environment.Scenes
item.ParentID = UUID;
item.ParentPartID = UUID;
item.Flags=m_taskInventory[item.ItemID].Flags;
if (item.AssetID == UUID.Zero)
{
item.AssetID = m_taskInventory[item.ItemID].AssetID;
}
else if ((InventoryType)item.Type == InventoryType.Notecard)
{
ScenePresence presence =
m_parentGroup.Scene.GetScenePresence(
item.OwnerID);
if (presence != null)
{
presence.ControllingClient.SendAgentAlertMessage(
"Notecard saved", false);
}
}
m_taskInventory[item.ItemID] = item;
m_inventorySerial++;