Bot-oriented misc

This commit is contained in:
JustArchi
2019-04-03 16:41:47 +02:00
parent 47a8c864af
commit 9b01f7d8bf
3 changed files with 9 additions and 8 deletions

View File

@@ -29,6 +29,7 @@ using System.Threading.Tasks;
using ArchiSteamFarm.Collections;
using JetBrains.Annotations;
using Newtonsoft.Json;
using SteamKit2;
namespace ArchiSteamFarm {
internal sealed class BotDatabase : IDisposable {
@@ -200,7 +201,7 @@ namespace ArchiSteamFarm {
}
internal bool IsBlacklistedFromTrades(ulong steamID) {
if (steamID == 0) {
if ((steamID == 0) || !new SteamID(steamID).IsIndividualAccount) {
ASF.ArchiLogger.LogNullError(nameof(steamID));
return false;