diff options
author | Justin Clark-Casey (justincc) | 2011-01-27 20:57:59 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-01-27 20:57:59 +0000 |
commit | 19e4473a9732bfb1ebbace4bcbfbe15a0d833941 (patch) | |
tree | a6faf799fd81a520b0e22d331c04f6d22101cb72 /OpenSim/Region/CoreModules/World/Land | |
parent | When an oar is loaded, do not create a default parcel before loading the parc... (diff) | |
download | opensim-SC-19e4473a9732bfb1ebbace4bcbfbe15a0d833941.zip opensim-SC-19e4473a9732bfb1ebbace4bcbfbe15a0d833941.tar.gz opensim-SC-19e4473a9732bfb1ebbace4bcbfbe15a0d833941.tar.bz2 opensim-SC-19e4473a9732bfb1ebbace4bcbfbe15a0d833941.tar.xz |
Put confirmation on "land clear" command to avoid nasty accidents
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Land')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index a46be13..5243be8 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | |||
@@ -1653,9 +1653,21 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
1653 | 1653 | ||
1654 | protected void ClearCommand(Object[] args) | 1654 | protected void ClearCommand(Object[] args) |
1655 | { | 1655 | { |
1656 | Clear(true); | 1656 | string response = MainConsole.Instance.CmdPrompt( |
1657 | string.Format( | ||
1658 | "Are you sure that you want to clear all land parcels from {0} (y or n)", | ||
1659 | m_scene.RegionInfo.RegionName), | ||
1660 | "n"); | ||
1657 | 1661 | ||
1658 | MainConsole.Instance.OutputFormat("Cleared all parcels from {0}", m_scene.RegionInfo.RegionName); | 1662 | if (response.ToLower() == "y") |
1663 | { | ||
1664 | Clear(true); | ||
1665 | MainConsole.Instance.OutputFormat("Cleared all parcels from {0}", m_scene.RegionInfo.RegionName); | ||
1666 | } | ||
1667 | else | ||
1668 | { | ||
1669 | MainConsole.Instance.OutputFormat("Aborting clear of all parcels from {0}", m_scene.RegionInfo.RegionName); | ||
1670 | } | ||
1659 | } | 1671 | } |
1660 | 1672 | ||
1661 | protected void ShowParcelsCommand(Object[] args) | 1673 | protected void ShowParcelsCommand(Object[] args) |