Update BasicBot.cs
This commit is contained in:
parent
c0da37f278
commit
95917e93a5
1 changed files with 19 additions and 19 deletions
|
|
@ -228,36 +228,36 @@ namespace BetterSecondBotShared.bottypes
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Lp = new LoginParams(Client, bits[0], bits[1], myconfig.Basic_BotPassword, "BetterSecondBot", version);
|
Lp = new LoginParams(Client, bits[0], bits[1], myconfig.Basic_BotPassword, "BetterSecondBot", version);
|
||||||
|
}
|
||||||
|
if (helpers.notempty(myconfig.Basic_LoginLocation) == false)
|
||||||
|
{
|
||||||
|
myconfig.Basic_LoginLocation = "home";
|
||||||
|
Info("Basic_LoginLocation: is empty using home!");
|
||||||
}
|
}
|
||||||
if (use_home_region_redirect == false)
|
if (use_home_region_redirect == false)
|
||||||
{
|
{
|
||||||
if (helpers.notempty(myconfig.Basic_LoginLocation) == true)
|
if ((myconfig.Basic_LoginLocation != "home") && (myconfig.Basic_LoginLocation != "last"))
|
||||||
{
|
{
|
||||||
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");
|
||||||
{
|
|
||||||
Info("Basic_LoginLocation: is set to a uri! if login fails try using home or last");
|
|
||||||
}
|
|
||||||
Lp.Start = myconfig.Basic_LoginLocation;
|
|
||||||
Info("Basic_LoginLocation: First login using->"+Lp.Start);
|
|
||||||
}
|
}
|
||||||
else
|
Lp.Start = myconfig.Basic_LoginLocation;
|
||||||
{
|
Info("Basic_LoginLocation: First login using->"+Lp.Start);
|
||||||
Info("Basic_LoginLocation: is empty using home!");
|
|
||||||
Lp.Start = "home";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
string[] nexthome = getNextHomeArgs();
|
if ((myconfig.Basic_LoginLocation != "home") && (myconfig.Basic_LoginLocation != "last"))
|
||||||
if (nexthome.Length == 4) {
|
{
|
||||||
Info("Recovery login going to "+ nexthome[0]);
|
Lp.Start = "home";
|
||||||
AvoidSim(nexthome[0]);
|
}
|
||||||
Lp.Start = "" + Lp.URI + ":" + String.Join("&", nexthome);
|
if (Lp.Start == "home")
|
||||||
|
{
|
||||||
|
Info("Recovery login: using last location not home!");
|
||||||
|
Lp.Start = "last";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Info("Recovery login all home locations used: using last");
|
Info("Recovery login: using home location not last!");
|
||||||
Lp.Start = "last";
|
Lp.Start = "home";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (reconnect == false)
|
if (reconnect == false)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue