Fix: stats and marks queries

This commit is contained in:
Grail Finder
2025-07-11 21:19:16 +03:00
parent f01fc12510
commit acf1386c73
7 changed files with 16 additions and 13 deletions

View File

@ -76,6 +76,10 @@ func HandleJoinTeam(w http.ResponseWriter, r *http.Request) {
abortWithError(w, err.Error())
return
}
if fi.Room == nil {
http.Redirect(w, r, "/", 302)
return
}
if fi.Room.IsRunning && role == "mime" {
err = errors.New("cannot join as mime when game is running")
abortWithError(w, err.Error())