aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/World/Serialiser
diff options
context:
space:
mode:
authormingchen2008-07-25 02:30:07 +0000
committermingchen2008-07-25 02:30:07 +0000
commitf2742fb6043c6b7332afd026d77a29b25369934c (patch)
tree895f906ba9db30b27117e6f0d7af40e063204e8e /OpenSim/Region/Environment/Modules/World/Serialiser
parentllApplyImpulse now accepts any non-zero integer as not FALSE (diff)
downloadopensim-SC-f2742fb6043c6b7332afd026d77a29b25369934c.zip
opensim-SC-f2742fb6043c6b7332afd026d77a29b25369934c.tar.gz
opensim-SC-f2742fb6043c6b7332afd026d77a29b25369934c.tar.bz2
opensim-SC-f2742fb6043c6b7332afd026d77a29b25369934c.tar.xz
*Added CommandIntentions that is used to describe a console commands hazard. HAZARDOUS if it modifies the simulator, NON_HAZARDOUS if it does a command that doesn't modify the simulator but does a background command such as a forced backup, and STATISTICAL if it returns debug or more information.
*This is useful for implementing a protection system from unwanted script execution or for application modules needing to know what a command does.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Serialiser')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Serialiser/SerialiserModule.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Serialiser/SerialiserModule.cs b/OpenSim/Region/Environment/Modules/World/Serialiser/SerialiserModule.cs
index cefd15f..ce59ecc 100644
--- a/OpenSim/Region/Environment/Modules/World/Serialiser/SerialiserModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Serialiser/SerialiserModule.cs
@@ -199,10 +199,10 @@ namespace OpenSim.Region.Environment.Modules.World.Serialiser
199 199
200 private void LoadCommanderCommands() 200 private void LoadCommanderCommands()
201 { 201 {
202 Command serialiseSceneCommand = new Command("save", InterfaceSaveRegion, "Saves the named region into the exports directory."); 202 Command serialiseSceneCommand = new Command("save", CommandIntentions.COMMAND_NON_HAZARDOUS, InterfaceSaveRegion, "Saves the named region into the exports directory.");
203 serialiseSceneCommand.AddArgument("region-name", "The name of the region you wish to export", "String"); 203 serialiseSceneCommand.AddArgument("region-name", "The name of the region you wish to export", "String");
204 204
205 Command serialiseAllScenesCommand = new Command("save-all", InterfaceSaveAllRegions, "Saves all regions into the exports directory."); 205 Command serialiseAllScenesCommand = new Command("save-all",CommandIntentions.COMMAND_NON_HAZARDOUS, InterfaceSaveAllRegions, "Saves all regions into the exports directory.");
206 206
207 m_commander.RegisterCommand("save", serialiseSceneCommand); 207 m_commander.RegisterCommand("save", serialiseSceneCommand);
208 m_commander.RegisterCommand("save-all", serialiseAllScenesCommand); 208 m_commander.RegisterCommand("save-all", serialiseAllScenesCommand);