diff options
author | Melanie | 2012-02-02 21:36:45 +0100 |
---|---|---|
committer | Melanie | 2012-02-02 21:36:45 +0100 |
commit | 07c487a28f6ce6d85cf32fba0c2ded724f7b5af7 (patch) | |
tree | 7852ae5fa1c6a9d91f6c5b7930615a45245b694e /OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | |
parent | Streamline banning code using existing methods. (diff) | |
download | opensim-SC_OLD-07c487a28f6ce6d85cf32fba0c2ded724f7b5af7.zip opensim-SC_OLD-07c487a28f6ce6d85cf32fba0c2ded724f7b5af7.tar.gz opensim-SC_OLD-07c487a28f6ce6d85cf32fba0c2ded724f7b5af7.tar.bz2 opensim-SC_OLD-07c487a28f6ce6d85cf32fba0c2ded724f7b5af7.tar.xz |
Make ban, eject, freeze and the scripted versions of those work.
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index 5db56b0..0f83d82 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | |||
@@ -508,7 +508,7 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
508 | 508 | ||
509 | public void ClientOnParcelAccessListUpdateRequest(UUID agentID, | 509 | public void ClientOnParcelAccessListUpdateRequest(UUID agentID, |
510 | uint flags, int landLocalID, UUID transactionID, int sequenceID, | 510 | uint flags, int landLocalID, UUID transactionID, int sequenceID, |
511 | int sections, List<ParcelManager.ParcelAccessEntry> entries, | 511 | int sections, List<LandAccessEntry> entries, |
512 | IClientAPI remote_client) | 512 | IClientAPI remote_client) |
513 | { | 513 | { |
514 | // Flags is the list to update, it can mean either the ban or | 514 | // Flags is the list to update, it can mean either the ban or |
@@ -1777,10 +1777,10 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
1777 | 1777 | ||
1778 | if ((flags & 1) != 0) // Ban TODO: Remove magic number | 1778 | if ((flags & 1) != 0) // Ban TODO: Remove magic number |
1779 | { | 1779 | { |
1780 | ParcelManager.ParcelAccessEntry entry = new ParcelManager.ParcelAccessEntry(); | 1780 | LandAccessEntry entry = new LandAccessEntry(); |
1781 | entry.AgentID = targetAvatar.UUID; | 1781 | entry.AgentID = targetAvatar.UUID; |
1782 | entry.Flags = AccessList.Ban; | 1782 | entry.Flags = AccessList.Ban; |
1783 | entry.Time = new DateTime(); | 1783 | entry.Expires = 0; // Perm |
1784 | 1784 | ||
1785 | land.LandData.ParcelAccessList.Add(entry); | 1785 | land.LandData.ParcelAccessList.Add(entry); |
1786 | } | 1786 | } |