Updated TestClient to optionally read a master from a file.
Added option for follow command to follow master if no target given. git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@653 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -41,7 +41,7 @@ namespace libsecondlife.TestClient
|
||||
lineNumber++;
|
||||
string[] tokens = line.Trim().Split(new char[] { ' ', ',' });
|
||||
|
||||
if (tokens.Length == 3)
|
||||
if (tokens.Length >= 3)
|
||||
{
|
||||
account = new LoginDetails();
|
||||
account.FirstName = tokens[0];
|
||||
@@ -49,6 +49,11 @@ namespace libsecondlife.TestClient
|
||||
account.Password = tokens[2];
|
||||
|
||||
accounts.Add(account);
|
||||
|
||||
if (tokens.Length == 5)
|
||||
{
|
||||
master = tokens[3] + " " + tokens[4];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -58,11 +63,12 @@ namespace libsecondlife.TestClient
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
Console.WriteLine("Error reading from " + args[1]);
|
||||
return;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Console.WriteLine("Error reading from " + args[1]);
|
||||
Console.WriteLine(e.ToString());
|
||||
return;
|
||||
}
|
||||
|
||||
if (args.Length == 4)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user