Removed useless code
This commit is contained in:
+2
-5
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
@@ -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" ]:
|
||||
|
||||
Reference in New Issue
Block a user