Skip to content

Commit

Permalink
add a failsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudokhvist committed Sep 26, 2024
1 parent 3e8631a commit 99e7c22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FixBigInventories/FixBigInventories.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public Task OnLoaded() {
}

public async Task OnBotTradeOfferResults(Bot bot, IReadOnlyCollection<ParseTradeResult> tradeResults) {
if (EnabledBots.Contains(bot)) {
if (EnabledBots.Contains(bot) && bot.IsConnectedAndLoggedOn) {
if (tradeResults.Any(static result => result is { Result: ParseTradeResult.EResult.Accepted, Confirmed: true })) {
bool success = false;

Expand Down

0 comments on commit 99e7c22

Please sign in to comment.