Enha: wait for mime clue

This commit is contained in:
Grail Finder
2025-05-12 19:41:34 +03:00
parent da8131a0a4
commit f752d2a162
5 changed files with 16 additions and 10 deletions

View File

@ -51,6 +51,10 @@ func HandleShowColor(w http.ResponseWriter, r *http.Request) {
abortWithError(w, err.Error())
return
}
if !fi.Room.MimeDone {
abortWithError(w, "wait for the clue")
return
}
color, exists := roundWords[word]
log.Debug("got show-color request", "word", word, "color", color)
if !exists {