*Fix for loginuri issue in MassTestClient

Sugilite
mingchen 2007-06-21 17:42:53 +00:00
parent 5498ce108e
commit fc3aa3e193
1 changed files with 20 additions and 13 deletions

View File

@ -15,8 +15,8 @@ namespace libsecondlife.TestClient
private static void Usage()
{
Console.WriteLine("Usage: " + Environment.NewLine +
"MassTestClient.exe --first \"firstname\" --last \"lastname\" --pass \"password\" --contact \"youremail\" [--startpos \"sim/x/y/z\"] [--master \"master name\"] [--masterkey \"master uuid\"] [--loginuri \"loginuri\"] [--masscommandfile \"filename\"]" +
Environment.NewLine + Environment.NewLine + "MassTestClient.exe --loginfile \"filename\" --contact \"youremail\" [--master \"master name\"] [--masterkey \"master uuid\"] [--loginuri \"loginuri\"] [--masscommandfile \"filename\"]");
"MassTestClient.exe --first \"firstname\" --last \"lastname\" --pass \"password\" --contact \"youremail\" [--startpos \"sim/x/y/z\"] [--master \"master name\"] [--masterkey \"master uuid\"] [--loginuri] [--masscommandfile \"filename\"]" +
Environment.NewLine + Environment.NewLine + "MassTestClient.exe --loginfile \"filename\" --contact \"youremail\" [--master \"master name\"] [--masterkey \"master uuid\"] [--loginuri] [--masscommandfile \"filename\"]");
Console.ReadLine();
}
@ -54,6 +54,7 @@ namespace libsecondlife.TestClient
string file = String.Empty;
string contact = String.Empty;
string loginURI = "https://login.agni.lindenlab.com/cgi-bin/login.cgi";
try
{
if (arguments["masterkey"] != null)
@ -71,9 +72,9 @@ namespace libsecondlife.TestClient
contact = arguments["contact"];
if (arguments["file"] != null)
if (arguments["loginfile"] != null)
{
file = arguments["file"];
file = arguments["loginfile"];
// Loading names from a file
try
@ -146,7 +147,12 @@ namespace libsecondlife.TestClient
if (arguments["loginuri"] != null)
{
loginURI = arguments["loginuri"];
Console.WriteLine("Please enter a login uri. If you enter nothing, AGNI grid is assumed:");
string temp = Console.ReadLine();
if (temp.Trim().Length > 0)
{
loginURI = temp.Trim();
}
}
List<string> massTestCommands = new List<string>();
@ -194,6 +200,7 @@ namespace libsecondlife.TestClient
Console.WriteLine("Detected " + massTestCommands.Count + " mass commands; MassTestClient operation will be used");
}
Console.WriteLine(loginURI);
foreach (LoginDetails a in accounts)
{
a.MasterName = masterName;