adds the current attempted recovery sim to the avoid sim list
This commit is contained in:
parent
041668a0ed
commit
eebebc92ea
2 changed files with 6 additions and 1 deletions
|
|
@ -190,6 +190,10 @@ namespace BetterSecondBotShared.bottypes
|
||||||
{
|
{
|
||||||
Start(false);
|
Start(false);
|
||||||
}
|
}
|
||||||
|
protected virtual void AvoidSim(string simname)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public virtual void Start(bool use_home_region_redirect)
|
public virtual void Start(bool use_home_region_redirect)
|
||||||
{
|
{
|
||||||
Client = new GridClient();
|
Client = new GridClient();
|
||||||
|
|
@ -243,6 +247,7 @@ namespace BetterSecondBotShared.bottypes
|
||||||
string[] nexthome = getNextHomeArgs();
|
string[] nexthome = getNextHomeArgs();
|
||||||
if (nexthome.Length == 4) {
|
if (nexthome.Length == 4) {
|
||||||
Info("Recovery login going to "+ nexthome[0]);
|
Info("Recovery login going to "+ nexthome[0]);
|
||||||
|
AvoidSim(nexthome[0]);
|
||||||
Lp.Start = "" + Lp.URI + ":" + String.Join("&", nexthome);
|
Lp.Start = "" + Lp.URI + ":" + String.Join("&", nexthome);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@ namespace BSB.bottypes
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected void AvoidSim(string simname)
|
protected override void AvoidSim(string simname)
|
||||||
{
|
{
|
||||||
if (avoid_sims.ContainsKey(simname) == false)
|
if (avoid_sims.ContainsKey(simname) == false)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue