Finish plumbing RezRestoreToWorld.

LSLKeyTest
Melanie Thielker 2016-03-09 02:52:45 +01:00
parent 43ca32150c
commit 1697f3e0c2
1 changed files with 16 additions and 1 deletions

View File

@ -6588,7 +6588,22 @@ namespace OpenSim.Region.ClientStack.LindenUDP
private bool HandlerRezRestoreToWorld(IClientAPI sender, Packet Pack) private bool HandlerRezRestoreToWorld(IClientAPI sender, Packet Pack)
{ {
return false; RezRestoreToWorldPacket restore = (RezRestoreToWorldPacket)Pack;
#region Packet Session and User Check
if (m_checkPackets)
{
if (restore.AgentData.SessionID != SessionId ||
restore.AgentData.AgentID != AgentId)
return true;
}
#endregion
RezRestoreToWorld handlerRezRestoreToWorld = OnRezRestoreToWorld;
if (handlerRezRestoreToWorld != null)
handlerRezRestoreToWorld(this, restore.InventoryData.ItemID);
return true;
} }
private bool HandlerModifyLand(IClientAPI sender, Packet Pack) private bool HandlerModifyLand(IClientAPI sender, Packet Pack)