Skip to content

Commit

Permalink
Added fix where accounts with empty usernames would still get launched
Browse files Browse the repository at this point in the history
If an account in settings has an empty username set it will now ignore
that account. If no bots has been loaded it will exit the program rather
than running an empty session.
  • Loading branch information
Casper committed Jul 24, 2016
1 parent a379c6f commit 02ac7a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Binary file modified .vs/HourBoostr/v14/.suo
Binary file not shown.
10 changes: 10 additions & 0 deletions HourBoostr/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,23 @@ private void StartBotAccounts()
/*Go through account and log them into steam*/
foreach (var account in mSettings.Accounts)
{
if (string.IsNullOrWhiteSpace(account.Username))
continue;

var bot = new Bot(account);
mActiveBotList.Add(bot);

while (bot.mBotState == Bot.BotState.LoggedOut)
Thread.Sleep(100);
}

if (mActiveBotList.Count == 0)
{
Console.WriteLine("No account were loaded.");
Thread.Sleep(1500);
Environment.Exit(1);
}

/*Accounts statistics and some fucking baller ascii*/
Console.Clear();
Console.WriteLine($"\n _____ _ _ ");
Expand Down

0 comments on commit 02ac7a1

Please sign in to comment.