diff options
author | Charles Krinke | 2008-06-26 13:45:36 +0000 |
---|---|---|
committer | Charles Krinke | 2008-06-26 13:45:36 +0000 |
commit | a58a47a7592799813b92aacfb0af4c0b753c899d (patch) | |
tree | 1aa062da5c9d65080c27d8e72347dd143cbea759 /OpenSim/Region/Environment/Modules/World/Land | |
parent | Mantis#1602. Thank you, Kinoc for a patch to: (diff) | |
download | opensim-SC-a58a47a7592799813b92aacfb0af4c0b753c899d.zip opensim-SC-a58a47a7592799813b92aacfb0af4c0b753c899d.tar.gz opensim-SC-a58a47a7592799813b92aacfb0af4c0b753c899d.tar.bz2 opensim-SC-a58a47a7592799813b92aacfb0af4c0b753c899d.tar.xz |
Mantis#1597. Thank you, Melanie for a patch that:
Adds handlers for the reclaim land functionality,
plus all needed permissions checks.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Land')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs index 984bc4e..05bd983 100644 --- a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs | |||
@@ -94,6 +94,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
94 | client.OnParcelAccessListRequest += new ParcelAccessListRequest(handleParcelAccessRequest); | 94 | client.OnParcelAccessListRequest += new ParcelAccessListRequest(handleParcelAccessRequest); |
95 | client.OnParcelAccessListUpdateRequest += new ParcelAccessListUpdateRequest(handleParcelAccessUpdateRequest); | 95 | client.OnParcelAccessListUpdateRequest += new ParcelAccessListUpdateRequest(handleParcelAccessUpdateRequest); |
96 | client.OnParcelAbandonRequest += new ParcelAbandonRequest(handleParcelAbandonRequest); | 96 | client.OnParcelAbandonRequest += new ParcelAbandonRequest(handleParcelAbandonRequest); |
97 | client.OnParcelReclaim += new ParcelReclaim(handleParcelReclaim); | ||
97 | 98 | ||
98 | if (m_scene.Entities.ContainsKey(client.AgentId)) | 99 | if (m_scene.Entities.ContainsKey(client.AgentId)) |
99 | { | 100 | { |
@@ -932,6 +933,21 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
932 | { | 933 | { |
933 | landList[local_id].landData.ownerID = m_scene.RegionInfo.MasterAvatarAssignedUUID; | 934 | landList[local_id].landData.ownerID = m_scene.RegionInfo.MasterAvatarAssignedUUID; |
934 | m_scene.Broadcast(SendParcelOverlay); | 935 | m_scene.Broadcast(SendParcelOverlay); |
936 | landList[local_id].sendLandUpdateToClient(remote_client); | ||
937 | } | ||
938 | } | ||
939 | |||
940 | } | ||
941 | |||
942 | public void handleParcelReclaim(int local_id, IClientAPI remote_client) | ||
943 | { | ||
944 | if (landList.ContainsKey(local_id)) | ||
945 | { | ||
946 | if (m_scene.ExternalChecks.ExternalChecksCanReclaimParcel(remote_client.AgentId, landList[local_id])) | ||
947 | { | ||
948 | landList[local_id].landData.ownerID = m_scene.RegionInfo.MasterAvatarAssignedUUID; | ||
949 | m_scene.Broadcast(SendParcelOverlay); | ||
950 | landList[local_id].sendLandUpdateToClient(remote_client); | ||
935 | } | 951 | } |
936 | } | 952 | } |
937 | 953 | ||
@@ -1060,4 +1076,4 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
1060 | } | 1076 | } |
1061 | } | 1077 | } |
1062 | 1078 | ||
1063 | } \ No newline at end of file | 1079 | } |