aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/ConsoleClient/ConsoleClient.cs4
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) + "\"";