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"];
}
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));
}
}
}
+3 -3
View File
@@ -187,10 +187,10 @@ if (isset($_GET["render"]))
{
$status = '<span class="positive-color">FC</span>';
}
else
{
// else
// {
// $status = '<span class="positive-color">PASS</span>';
}
// }
$mode_text = "?";
if ($score["game"]["mode"] == "osu")
+3 -3
View File
@@ -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" ]: