mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Fixed issue where a missing sssg_clearance cookie would fool the bot into thinking it needed to solve a KiwiFlare challenge regardless of whether it's enabled
This commit is contained in:
@@ -47,6 +47,11 @@ public class KfTokenService
|
|||||||
{
|
{
|
||||||
var clearanceCookie = _cookies.GetAllCookies()["sssg_clearance"];
|
var clearanceCookie = _cookies.GetAllCookies()["sssg_clearance"];
|
||||||
_logger.Debug($"Got clearance cookie with value: {clearanceCookie}");
|
_logger.Debug($"Got clearance cookie with value: {clearanceCookie}");
|
||||||
|
if (await _kiwiFlare.CheckAuth("nigger"))
|
||||||
|
{
|
||||||
|
_logger.Debug("KiwiFlare has been turned off as it's accepting a nigger sssg_clearance");
|
||||||
|
return;
|
||||||
|
};
|
||||||
if (clearanceCookie != null)
|
if (clearanceCookie != null)
|
||||||
{
|
{
|
||||||
if (await _kiwiFlare.CheckAuth(clearanceCookie.Value)) return;
|
if (await _kiwiFlare.CheckAuth(clearanceCookie.Value)) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user