diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index d3e18eb35..23911afa2 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -657,9 +657,13 @@ namespace ArchiSteamFarm { return "Trade couldn't be send because SteamMasterID is not defined!"; } - await Trading.LimitInventoryRequestsAsync().ConfigureAwait(false); - HashSet inventory = await ArchiWebHandler.GetMyInventory(true).ConfigureAwait(false); + if (BotConfig.SteamMasterID == SteamClient.SteamID) { + return "You can't loot yourself!"; + } + await Trading.LimitInventoryRequestsAsync().ConfigureAwait(false); + + HashSet inventory = await ArchiWebHandler.GetMyInventory(true).ConfigureAwait(false); if ((inventory == null) || (inventory.Count == 0)) { return "Nothing to send, inventory seems empty!"; } diff --git a/ArchiSteamFarm/Trading.cs b/ArchiSteamFarm/Trading.cs index 854f64a17..6274b0276 100644 --- a/ArchiSteamFarm/Trading.cs +++ b/ArchiSteamFarm/Trading.cs @@ -162,6 +162,8 @@ namespace ArchiSteamFarm { } // Now check if it's worth for us to do the trade + await LimitInventoryRequestsAsync().ConfigureAwait(false); + HashSet inventory = await Bot.ArchiWebHandler.GetMyInventory(false).ConfigureAwait(false); if ((inventory == null) || (inventory.Count == 0)) { return true; // OK, assume that this trade is valid, we can't check our EQ