Fix SteamParental crash

This commit is contained in:
JustArchi
2016-02-10 02:42:05 +01:00
parent 856351aea0
commit a841b9494a

View File

@@ -85,7 +85,7 @@ namespace ArchiSteamFarm {
if (setCookieValue.Contains("steamparental=")) {
string setCookie = setCookieValue.Substring(setCookieValue.IndexOf("steamparental=") + 14);
setCookie = setCookie.Substring(0, setCookie.IndexOf(';'));
Cookie.Add("steamparental", setCookie);
Cookie["steamparental"] = setCookie;
Logging.LogGenericInfo("Success!", Bot.BotName);
return;
}