From d4ba9e3f55365fe3720101b7eac0007d722d488b Mon Sep 17 00:00:00 2001 From: Thayol Date: Fri, 11 Jun 2021 18:41:39 +0200 Subject: [PATCH] Removed useless code --- API/index.php | 7 ++----- async/match/index.php | 6 +++--- unalike.py | 6 +++--- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/API/index.php b/API/index.php index 7e44963..0c4d465 100644 --- a/API/index.php +++ b/API/index.php @@ -25,10 +25,7 @@ if (!empty($_GET["username"]) || !empty($_GET["userid"])) $id = $_GET["userid"]; } - if ($id == "~Unalike") - { - } - else if ($id < 0) + else if ($id != "~Unalike" && $id < 0) { echo "Unauthorized"; exit(0); @@ -216,7 +213,7 @@ if (!empty($_GET["username"]) || !empty($_GET["userid"])) } else if ($diffs_redirect) { - header("Location: " . "../f/" . strval($beatmapset)); + header("Location: ../f/" . strval($beatmapset)); } } } diff --git a/async/match/index.php b/async/match/index.php index a389f01..05e0587 100644 --- a/async/match/index.php +++ b/async/match/index.php @@ -187,10 +187,10 @@ if (isset($_GET["render"])) { $status = 'FC'; } - else - { + // else + // { // $status = 'PASS'; - } + // } $mode_text = "?"; if ($score["game"]["mode"] == "osu") diff --git a/unalike.py b/unalike.py index ef99a30..b8546d6 100644 --- a/unalike.py +++ b/unalike.py @@ -450,9 +450,9 @@ while running: elif request["type"] == "register" and "target" in request: print("Registering lobby: " + str(request["target"])) irc_start_managing(request["target"], join=True) - elif request["type"] == "shutdown": - running = False - break + # elif request["type"] == "shutdown": + # running = False + # break for line in lines: if line.cmd in [ "001" ]: