Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Lynchburg Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lynchburg
Lynchburg Server
Commits
8fcd630a
Commit
8fcd630a
authored
4 years ago
by
Nils G.
Browse files
Options
Downloads
Patches
Plain Diff
Prevent joining a game which has already started
parent
6af73cca
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
controllers/player.py
+3
-0
3 additions, 0 deletions
controllers/player.py
views/default/login.html
+3
-0
3 additions, 0 deletions
views/default/login.html
with
6 additions
and
0 deletions
controllers/player.py
+
3
−
0
View file @
8fcd630a
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
views/default/login.html
+
3
−
0
View file @
8fcd630a
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment