mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Stop the REST console crashing when entering return on an empty line Thanks BlueWall
This commit is contained in:
@@ -82,9 +82,11 @@ namespace OpenSim.ConsoleClient
|
||||
|
||||
private static void SendCommand(string module, string[] cmd)
|
||||
{
|
||||
string sendCmd = cmd[0];
|
||||
string sendCmd = "";
|
||||
if (cmd.Length > 1)
|
||||
{
|
||||
sendCmd = cmd[0];
|
||||
|
||||
Array.Copy(cmd, 1, cmd, 0, cmd.Length-1);
|
||||
Array.Resize(ref cmd, cmd.Length-1);
|
||||
sendCmd += "\"" + String.Join("\" \"", cmd) + "\"";
|
||||
|
||||
Reference in New Issue
Block a user