Skip to content
Snippets Groups Projects
Commit 8fcd630a authored by Nils G.'s avatar Nils G.
Browse files

Prevent joining a game which has already started

parent 6af73cca
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,9 @@ def create():
if not room_record:
return(FAIL(CODE_NOTFOUND))
if room_record.started:
return(FAIL(CODE_GONE))
players = PLAYERS_GET(room_record)
#Check if room limit is reached
......
......@@ -34,6 +34,9 @@
case 409:
set_error("{{=T('Please choose a different name')}}.");
break;
case 410:
set_info("{{=T('The game has already started')}}.");
break;
case 422:
set_error("{{=T('Please provide valid values')}}.");
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment