adds the current attempted recovery sim to the avoid sim list

This commit is contained in:
Madpeterz 2020-12-21 14:41:42 +00:00
parent 041668a0ed
commit eebebc92ea
2 changed files with 6 additions and 1 deletions

View file

@ -190,6 +190,10 @@ namespace BetterSecondBotShared.bottypes
{
Start(false);
}
protected virtual void AvoidSim(string simname)
{
}
public virtual void Start(bool use_home_region_redirect)
{
Client = new GridClient();
@ -243,6 +247,7 @@ namespace BetterSecondBotShared.bottypes
string[] nexthome = getNextHomeArgs();
if (nexthome.Length == 4) {
Info("Recovery login going to "+ nexthome[0]);
AvoidSim(nexthome[0]);
Lp.Start = "" + Lp.URI + ":" + String.Join("&", nexthome);
}
else

View file

@ -123,7 +123,7 @@ namespace BSB.bottypes
protected void AvoidSim(string simname)
protected override void AvoidSim(string simname)
{
if (avoid_sims.ContainsKey(simname) == false)
{