Removed useless code

This commit is contained in:
2021-06-11 18:41:39 +02:00
parent 7a1c1e09f7
commit d4ba9e3f55
3 changed files with 8 additions and 11 deletions
+2 -5
View File
@@ -25,10 +25,7 @@ if (!empty($_GET["username"]) || !empty($_GET["userid"]))
$id = $_GET["userid"]; $id = $_GET["userid"];
} }
if ($id == "~Unalike") else if ($id != "~Unalike" && $id < 0)
{
}
else if ($id < 0)
{ {
echo "Unauthorized"; echo "Unauthorized";
exit(0); exit(0);
@@ -216,7 +213,7 @@ if (!empty($_GET["username"]) || !empty($_GET["userid"]))
} }
else if ($diffs_redirect) else if ($diffs_redirect)
{ {
header("Location: " . "../f/" . strval($beatmapset)); header("Location: ../f/" . strval($beatmapset));
} }
} }
} }
+3 -3
View File
@@ -187,10 +187,10 @@ if (isset($_GET["render"]))
{ {
$status = '<span class="positive-color">FC</span>'; $status = '<span class="positive-color">FC</span>';
} }
else // else
{ // {
// $status = '<span class="positive-color">PASS</span>'; // $status = '<span class="positive-color">PASS</span>';
} // }
$mode_text = "?"; $mode_text = "?";
if ($score["game"]["mode"] == "osu") if ($score["game"]["mode"] == "osu")
+3 -3
View File
@@ -450,9 +450,9 @@ while running:
elif request["type"] == "register" and "target" in request: elif request["type"] == "register" and "target" in request:
print("Registering lobby: " + str(request["target"])) print("Registering lobby: " + str(request["target"]))
irc_start_managing(request["target"], join=True) irc_start_managing(request["target"], join=True)
elif request["type"] == "shutdown": # elif request["type"] == "shutdown":
running = False # running = False
break # break
for line in lines: for line in lines:
if line.cmd in [ "001" ]: if line.cmd in [ "001" ]: