diff options
author | UbitUmarov | 2016-09-12 18:26:24 +0100 |
---|---|---|
committer | UbitUmarov | 2016-09-12 18:26:24 +0100 |
commit | c4f30a3c3120379a740fd5f6018bf8d5d746c7eb (patch) | |
tree | 4d83114400936c586bef9773f456fc30151e1e09 /OpenSim | |
parent | avoid siting a avatar at 0,0,0 (diff) | |
download | opensim-SC_OLD-c4f30a3c3120379a740fd5f6018bf8d5d746c7eb.zip opensim-SC_OLD-c4f30a3c3120379a740fd5f6018bf8d5d746c7eb.tar.gz opensim-SC_OLD-c4f30a3c3120379a740fd5f6018bf8d5d746c7eb.tar.bz2 opensim-SC_OLD-c4f30a3c3120379a740fd5f6018bf8d5d746c7eb.tar.xz |
add skeleton on handle revoke permissions packet ( non funtional still ) ( do it not using a multidelegate event )
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index fad250b..2d337f1 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -6108,7 +6108,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
6108 | AddLocalPacketHandler(PacketType.SimWideDeletes, HandleSimWideDeletes); | 6108 | AddLocalPacketHandler(PacketType.SimWideDeletes, HandleSimWideDeletes); |
6109 | AddLocalPacketHandler(PacketType.SendPostcard, HandleSendPostcard); | 6109 | AddLocalPacketHandler(PacketType.SendPostcard, HandleSendPostcard); |
6110 | AddLocalPacketHandler(PacketType.ChangeInventoryItemFlags, HandleChangeInventoryItemFlags); | 6110 | AddLocalPacketHandler(PacketType.ChangeInventoryItemFlags, HandleChangeInventoryItemFlags); |
6111 | 6111 | AddLocalPacketHandler(PacketType.RevokePermissions, HandleRevokePermissions); | |
6112 | AddGenericPacketHandler("autopilot", HandleAutopilot); | 6112 | AddGenericPacketHandler("autopilot", HandleAutopilot); |
6113 | } | 6113 | } |
6114 | 6114 | ||
@@ -10997,6 +10997,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
10997 | return true; | 10997 | return true; |
10998 | } | 10998 | } |
10999 | 10999 | ||
11000 | |||
11000 | private bool HandleInventoryDescendents(IClientAPI sender, Packet Pack) | 11001 | private bool HandleInventoryDescendents(IClientAPI sender, Packet Pack) |
11001 | { | 11002 | { |
11002 | return true; | 11003 | return true; |
@@ -12371,6 +12372,24 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
12371 | return true; | 12372 | return true; |
12372 | } | 12373 | } |
12373 | 12374 | ||
12375 | private bool HandleRevokePermissions(IClientAPI sender, Packet Pack) | ||
12376 | { | ||
12377 | RevokePermissionsPacket pkt = (RevokePermissionsPacket)Pack; | ||
12378 | if (pkt.AgentData.SessionID != SessionId || | ||
12379 | pkt .AgentData.AgentID != AgentId) | ||
12380 | return true; | ||
12381 | |||
12382 | // don't use multidelegate "event" | ||
12383 | ScenePresence sp = (ScenePresence)SceneAgent; | ||
12384 | if(sp != null && !sp.IsDeleted && !sp.IsInTransit) | ||
12385 | { | ||
12386 | UUID objectID = pkt.Data.ObjectID; | ||
12387 | uint permissions = pkt.Data.ObjectPermissions; | ||
12388 | |||
12389 | sp.HandleRevokePermissions(objectID , permissions); | ||
12390 | } | ||
12391 | return true; | ||
12392 | } | ||
12374 | private bool HandlePlacesQuery(IClientAPI sender, Packet Pack) | 12393 | private bool HandlePlacesQuery(IClientAPI sender, Packet Pack) |
12375 | { | 12394 | { |
12376 | PlacesQueryPacket placesQueryPacket = | 12395 | PlacesQueryPacket placesQueryPacket = |