add support to set the login location of the bot
home, last or uri:sim&x&y&z
This commit is contained in:
parent
17589c1c01
commit
c7826595cd
3 changed files with 22 additions and 1 deletions
|
|
@ -215,6 +215,19 @@ namespace BetterSecondBotShared.bottypes
|
|||
{
|
||||
Lp = new LoginParams(Client, bits[0], bits[1], myconfig.Basic_BotPassword, "BetterSecondBot", version);
|
||||
}
|
||||
if(helpers.notempty(myconfig.Basic_LoginLocation) == true)
|
||||
{
|
||||
if((myconfig.Basic_LoginLocation != "home") && (myconfig.Basic_LoginLocation != "last"))
|
||||
{
|
||||
Info("Basic_LoginLocation: is set to a uri! if login fails try using home or last");
|
||||
}
|
||||
Lp.Start = myconfig.Basic_LoginLocation;
|
||||
}
|
||||
else
|
||||
{
|
||||
Info("Basic_LoginLocation: is empty using home!");
|
||||
Lp.Start = "home";
|
||||
}
|
||||
if (reconnect == false)
|
||||
{
|
||||
BotStartHandler();
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ namespace BetterSecondBotShared.Json
|
|||
public string Basic_BotPassword { get; set; }
|
||||
public string[] Basic_HomeRegions { get; set; }
|
||||
|
||||
public string Basic_LoginLocation { get; set; }
|
||||
|
||||
// Security
|
||||
public string Security_MasterUsername { get; set; }
|
||||
public string Security_SubMasters { get; set; }
|
||||
|
|
|
|||
|
|
@ -33,6 +33,11 @@ namespace BetterSecondBotShared.Json
|
|||
{
|
||||
return "a CSV of SLURLs that the bot will attempt to return to after avoiding a sim shutdown (In testing)";
|
||||
}
|
||||
else if (cmd == "Basic_LoginLocation")
|
||||
{
|
||||
return "the location to login to: home or last or a vaild URI encoded string example: uri:simname&X&Y&Z";
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
protected string GetHelp_Security(string cmd)
|
||||
|
|
@ -220,7 +225,8 @@ namespace BetterSecondBotShared.Json
|
|||
// Basic
|
||||
if (cmd == "Basic_BotUserName") { return "Example Resident"; }
|
||||
else if (cmd == "Basic_BotPassword") { return "Pass"; }
|
||||
else if (cmd == "Basic_HomeRegions") { return "http://maps.secondlife.com/secondlife/Viserion/50/140/23"; }
|
||||
else if (cmd == "Basic_HomeRegions") { return "http://maps.secondlife.com/secondlife/Viserion/50/140/23"; }
|
||||
else if (cmd == "Basic_LoginLocation") { return "home"; }
|
||||
return "";
|
||||
}
|
||||
protected string GetValueHint_Security(string cmd)
|
||||
|
|
|
|||
Loading…
Reference in a new issue