diff --git a/WebContent/game.jsp b/WebContent/game.jsp
index c8724f8..c80f0e8 100644
--- a/WebContent/game.jsp
+++ b/WebContent/game.jsp
@@ -87,21 +87,15 @@ HttpSession hSession = request.getSession(true);
If this is your first time playing, you may wish to read the changelog and
list of known issues.
- Most recent update: 3 May 2015:
+ Most recent update: 13 August 2017:
- - The game list automatically updates once per minute now, instead of several times per
- second. You can still click the Refresh Games button in the top left corner at any time.
- - Chat flood protection has been made more strict.
- - Other back-end changes to attempt to get the AWS bill in control.
- - All locally-stored custom card sets have been removed. You must use
- Cardcast for custom card sets now.
- - The 5th and 6th Expansions, PAX Prime 2014 Panel, Ten Days or Whatever of Kwanzaa,
- and Science packs have all been added.
- - Remaining known issues and high priority features:
- - Leaving a game as a spectator doesn't work right.
- - Game owners still can't kick players from their game.
- - Actually saw a deadlock the other night, so that needs fixed.
-
+ - Global chat is disabled. Far too spammy, far too shitty. Go shitpost
+ somewhere else, or at least take it to a game chat.
+ - Added metrics logging. This will allow analysis over what cards are played often, and
+ regional trends. See the next bullet point for details. Your username and chat will
+ never be stored permanently.
+ - Hey, this is important: Read the privacy page for
+ details about what gameplay information is collected and how it's shared.
Nickname:
diff --git a/WebContent/index.jsp b/WebContent/index.jsp
index 61e52e0..12b43ee 100644
--- a/WebContent/index.jsp
+++ b/WebContent/index.jsp
@@ -54,6 +54,15 @@ to, for instance, display the number of connected players.
Recent Changes:
+ - 13 August 2017:
- 3 May 2015:
- The game list automatically updates once per minute now, instead of several times per
second. You can still click the Refresh Games button in the top left corner at any time.
diff --git a/WebContent/js/cah.ajax.handlers.js b/WebContent/js/cah.ajax.handlers.js
index 958afde..f1b1b30 100644
--- a/WebContent/js/cah.ajax.handlers.js
+++ b/WebContent/js/cah.ajax.handlers.js
@@ -96,6 +96,7 @@ cah.ajax.after_registered = function() {
$("#bottom").removeClass("hide");
// TODO once there are channels, this needs to specify the global channel
cah.Ajax.build(cah.$.AjaxOperation.NAMES).run();
+ cah.log.error("IMPORTANT: Global chat has been disabled.");
cah.GameList.instance.show();
cah.GameList.instance.update();
cah.longpoll.longPoll();
diff --git a/src/main/java/net/socialgamer/cah/handlers/ChatHandler.java b/src/main/java/net/socialgamer/cah/handlers/ChatHandler.java
index 12d86e9..573c5ae 100644
--- a/src/main/java/net/socialgamer/cah/handlers/ChatHandler.java
+++ b/src/main/java/net/socialgamer/cah/handlers/ChatHandler.java
@@ -1,16 +1,16 @@
/**
* Copyright (c) 2012, Andy Janata
* All rights reserved.
- *
+ *
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met:
- *
+ *
* * Redistributions of source code must retain the above copyright notice, this list of conditions
* and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials provided
* with the distribution.
- *
+ *
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
@@ -46,7 +46,7 @@ import com.google.inject.Inject;
/**
* Handler for chat messages.
- *
+ *
* @author Andy Janata (ajanata@socialgamer.net)
*/
public class ChatHandler extends Handler {
@@ -74,7 +74,8 @@ public class ChatHandler extends Handler {
if (request.getParameter(AjaxRequest.MESSAGE) == null) {
return error(ErrorCode.NO_MSG_SPECIFIED);
- } else if (wall && !user.isAdmin()) {
+ } else if (/* wall && */!user.isAdmin()) {
+ // Making global chat admin-only because it's hopeless
return error(ErrorCode.NOT_ADMIN);
} else {
final String message = request.getParameter(AjaxRequest.MESSAGE).trim();