From 5a952e0fb725b27b97c33a6c772774523d3e4e6b Mon Sep 17 00:00:00 2001 From: JustArchi Date: Mon, 13 Aug 2018 00:01:43 +0200 Subject: [PATCH] Closes #879 --- ArchiSteamFarm/IPC.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ArchiSteamFarm/IPC.cs b/ArchiSteamFarm/IPC.cs index 2d0899cd2..6cc0997c8 100644 --- a/ArchiSteamFarm/IPC.cs +++ b/ArchiSteamFarm/IPC.cs @@ -439,6 +439,11 @@ namespace ArchiSteamFarm { return true; } + if (Program.GlobalConfig.SteamOwnerID == 0) { + await ResponseJsonObject(request, response, new GenericResponse(false, string.Format(Strings.ErrorIsInvalid, nameof(Program.GlobalConfig.SteamOwnerID))), HttpStatusCode.BadRequest).ConfigureAwait(false); + return true; + } + Bot targetBot = Bot.Bots.OrderBy(bot => bot.Key).Select(bot => bot.Value).FirstOrDefault(); if (targetBot == null) { await ResponseJsonObject(request, response, new GenericResponse(false, Strings.ErrorNoBotsDefined), HttpStatusCode.BadRequest).ConfigureAwait(false);