mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 18:55:39 +08:00
Change ConsoleClient to allow quoted values to be passed through. This
allows setting the login message remotely on the user server console
This commit is contained in:
@@ -82,7 +82,13 @@ namespace OpenSim.ConsoleClient
|
||||
|
||||
private static void SendCommand(string module, string[] cmd)
|
||||
{
|
||||
string sendCmd = String.Join(" ", cmd);
|
||||
string sendCmd = cmd[0];
|
||||
if (cmd.Length > 1)
|
||||
{
|
||||
Array.Copy(cmd, 1, cmd, 0, cmd.Length-1);
|
||||
Array.Resize(ref cmd, cmd.Length-1);
|
||||
sendCmd += "\"" + String.Join("\" \"", cmd) + "\"";
|
||||
}
|
||||
|
||||
Requester.MakeRequest("http://"+m_Host+":"+m_Port.ToString()+"/SessionCommand/", String.Format("ID={0}&COMMAND={1}", m_SessionID, sendCmd), CommandReply);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user