Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent multiple calls to !stop or the use of it during backup pause #887

Merged
merged 1 commit into from
Sep 27, 2022

Conversation

nickdnk
Copy link
Collaborator

@nickdnk nickdnk commented Sep 27, 2022

If players spam !stop during a live round, the game restores to the beginning of the current round, which does not change the game-state from live, meaning successive calls to !stop might trigger double restores, which messes up the game state. This prevents this from happening.

We also don't want to be able to call !stop while the game is still pending unpause from a restore.

Edit: Also prevents spectators from calling !stop.

Prevent spectator/unteamed from calling !stop
@nickdnk nickdnk added the bug label Sep 27, 2022
@nickdnk nickdnk merged commit bde6f41 into master Sep 27, 2022
@nickdnk nickdnk deleted the prevent_double_stop_calls branch September 27, 2022 23:08
Apfelwurm pushed a commit to Lan2Play/get5 that referenced this pull request Oct 19, 2022
…plewis#887)

Prevent multiple calls to !stop or the use of it during backup pause
Prevent spectator/unteamed from calling !stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants