diff options
author | Dan Lake | 2013-01-31 11:14:43 -0800 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-02-08 21:30:41 +0000 |
commit | f28a592310bae07da026aa1d89a947b01f585f86 (patch) | |
tree | c3c2a88b8f06e97fab1c90761b1b72a29ece539f /OpenSim/Region | |
parent | minor: Tidy up disabled logging on AssetTransactionModule for future use. Ma... (diff) | |
download | opensim-SC_OLD-f28a592310bae07da026aa1d89a947b01f585f86.zip opensim-SC_OLD-f28a592310bae07da026aa1d89a947b01f585f86.tar.gz opensim-SC_OLD-f28a592310bae07da026aa1d89a947b01f585f86.tar.bz2 opensim-SC_OLD-f28a592310bae07da026aa1d89a947b01f585f86.tar.xz |
Added option for UUID as command parameters. This lets the command handle the UUID parsing and type checking before the command is executed.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InterfaceCommander/Command.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InterfaceCommander/Command.cs b/OpenSim/Region/CoreModules/Framework/InterfaceCommander/Command.cs index 4004135..b9786ae 100644 --- a/OpenSim/Region/CoreModules/Framework/InterfaceCommander/Command.cs +++ b/OpenSim/Region/CoreModules/Framework/InterfaceCommander/Command.cs | |||
@@ -28,6 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using OpenSim.Region.Framework.Interfaces; | 30 | using OpenSim.Region.Framework.Interfaces; |
31 | using OpenMetaverse; | ||
31 | 32 | ||
32 | namespace OpenSim.Region.CoreModules.Framework.InterfaceCommander | 33 | namespace OpenSim.Region.CoreModules.Framework.InterfaceCommander |
33 | { | 34 | { |
@@ -152,6 +153,9 @@ namespace OpenSim.Region.CoreModules.Framework.InterfaceCommander | |||
152 | case "Boolean": | 153 | case "Boolean": |
153 | m_args[i].ArgumentValue = Boolean.Parse(arg.ToString()); | 154 | m_args[i].ArgumentValue = Boolean.Parse(arg.ToString()); |
154 | break; | 155 | break; |
156 | case "UUID": | ||
157 | m_args[i].ArgumentValue = UUID.Parse(arg.ToString()); | ||
158 | break; | ||
155 | default: | 159 | default: |
156 | Console.WriteLine("ERROR: Unknown desired type for argument " + m_args[i].Name + " on command " + m_name); | 160 | Console.WriteLine("ERROR: Unknown desired type for argument " + m_args[i].Name + " on command " + m_name); |
157 | break; | 161 | break; |