diff options
author | Justin Clark-Casey (justincc) | 2010-01-29 23:38:44 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-01-29 23:38:44 +0000 |
commit | 627df50646b9271ca7bcde6b05671db61b92913f (patch) | |
tree | 30600b0ca656f397f69fe9a37c815c6c141bcb78 /OpenSim/ConsoleClient/ConsoleClient.cs | |
parent | Apply http://opensimulator.org/mantis/view.php?id=3334 (diff) | |
download | opensim-SC_OLD-627df50646b9271ca7bcde6b05671db61b92913f.zip opensim-SC_OLD-627df50646b9271ca7bcde6b05671db61b92913f.tar.gz opensim-SC_OLD-627df50646b9271ca7bcde6b05671db61b92913f.tar.bz2 opensim-SC_OLD-627df50646b9271ca7bcde6b05671db61b92913f.tar.xz |
Apply http://opensimulator.org/mantis/view.php?id=4504
Stop the REST console crashing when entering return on an empty line
Thanks BlueWall
Diffstat (limited to '')
-rw-r--r-- | OpenSim/ConsoleClient/ConsoleClient.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/ConsoleClient/ConsoleClient.cs b/OpenSim/ConsoleClient/ConsoleClient.cs index d195d25..8c616e0 100644 --- a/OpenSim/ConsoleClient/ConsoleClient.cs +++ b/OpenSim/ConsoleClient/ConsoleClient.cs | |||
@@ -82,9 +82,11 @@ namespace OpenSim.ConsoleClient | |||
82 | 82 | ||
83 | private static void SendCommand(string module, string[] cmd) | 83 | private static void SendCommand(string module, string[] cmd) |
84 | { | 84 | { |
85 | string sendCmd = cmd[0]; | 85 | string sendCmd = ""; |
86 | if (cmd.Length > 1) | 86 | if (cmd.Length > 1) |
87 | { | 87 | { |
88 | sendCmd = cmd[0]; | ||
89 | |||
88 | Array.Copy(cmd, 1, cmd, 0, cmd.Length-1); | 90 | Array.Copy(cmd, 1, cmd, 0, cmd.Length-1); |
89 | Array.Resize(ref cmd, cmd.Length-1); | 91 | Array.Resize(ref cmd, cmd.Length-1); |
90 | sendCmd += "\"" + String.Join("\" \"", cmd) + "\""; | 92 | sendCmd += "\"" + String.Join("\" \"", cmd) + "\""; |