From 648c2f25091aa136c2f48ccc0908d0bc6eff9b0f Mon Sep 17 00:00:00 2001 From: JustArchi Date: Mon, 2 Jan 2017 22:17:06 +0100 Subject: [PATCH] Closes #392 --- ArchiSteamFarm/Bot.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index fa8c8ec01..4ba4d6d4e 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -1742,6 +1742,10 @@ namespace ArchiSteamFarm { return "You can't loot yourself!"; } + if (BotConfig.LootableTypes.Count == 0) { + return "You don't have any lootable types set!"; + } + await Trading.LimitInventoryRequestsAsync().ConfigureAwait(false); HashSet inventory = await ArchiWebHandler.GetMySteamInventory(true, BotConfig.LootableTypes).ConfigureAwait(false);