Skip to content

Commit

Permalink
Add option to disable game chat.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajanata committed Jul 28, 2018
1 parent c40c2d1 commit 5759766
Show file tree
Hide file tree
Showing 10 changed files with 625 additions and 587 deletions.
483 changes: 242 additions & 241 deletions WebContent/js/cah.constants.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions WebContent/js/cah.game.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ cah.Game.joinGame = function(gameId, data) {
game.showGamePermalink_(data);

cah.updateHash('game=' + gameId);
if (!cah.GAME_CHAT_ENABLED) {
cah.log.status_with_game(game, "IMPORTANT: Game chat has been disabled.", "error");
}
};

/**
Expand Down
1 change: 1 addition & 0 deletions build.properties.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pyx.max_games=25
pyx.include_inactive_cardsets=true
pyx.broadcast_connects_and_disconnects=true
pyx.global_chat_enabled=true
pyx.game_chat_enabled=true
# allow fill-in-the-blank cards at all. Limits are set via constants in GameOptions.
pyx.allow_blank_cards=true
# allow identification codes to be used without HTTPS
Expand Down
Loading

0 comments on commit 5759766

Please sign in to comment.