Correct !api <Bots> permission

This commit is contained in:
JustArchi
2017-03-15 14:11:35 +01:00
parent 0dbf892a84
commit ee0feb5de4

View File

@@ -2067,7 +2067,7 @@ namespace ArchiSteamFarm {
return IsOwner(steamID) ? FormatStaticResponse(string.Format(Strings.BotNotFound, botNames)) : null;
}
return GetAPIStatus(Bots.Where(kv => bots.Contains(kv.Value)).ToDictionary(kv => kv.Key, kv => kv.Value));
return GetAPIStatus(Bots.Where(kv => bots.Contains(kv.Value) && kv.Value.IsMaster(steamID)).ToDictionary(kv => kv.Key, kv => kv.Value));
}
private static string ResponseExit(ulong steamID) {