Skip to content

Commit

Permalink
Merge pull request #550 from kev306/muteSpectators
Browse files Browse the repository at this point in the history
Mute spectators
  • Loading branch information
vck3000 authored Dec 15, 2023
2 parents 6f95fa0 + 2c71fad commit ef758d0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/gameplay/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1900,13 +1900,15 @@ class Game extends Room {
}

updateMuteSpectators(muteSpectators: boolean) {
this.muteSpectators = muteSpectators;
if (this.gameStarted === false) {
this.muteSpectators = muteSpectators;

this.sendText(
this.allSockets,
`Mute spectators option set to ${muteSpectators}.`,
'server-text',
);
this.sendText(
this.allSockets,
`Mute spectators option set to ${muteSpectators}.`,
'server-text',
);
}
}

updateDisableVoteHistory(disableVoteHistory: boolean) {
Expand Down
7 changes: 7 additions & 0 deletions src/views/log.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
<div class="myContainer">
<h1>Changelog!</h1>
<ul class="list-group" id="my-list">
<li class="list-group-item">
<strong>06-12-2023: </strong>
<ul>
<li>Fixed: Mute spectators option may no longer be changed mid-game.</li>
</ul>
</li>

<li class="list-group-item">
<strong>11-06-2023: </strong>
<ul>
Expand Down

0 comments on commit ef758d0

Please sign in to comment.