Fix spam filter on a per-user basis and implement rudimentary swear guard.

This commit is contained in:
spjspj 2016-11-12 22:39:18 +11:00
parent 08ffbb7d3c
commit af725f8a6e

View file

@ -128,7 +128,7 @@ public class ChatManager {
if (!messageType.equals(MessageType.GAME)) {
if (userName != null && !userName.equals("")) {
if (message != null && userName != null && !userName.equals("")) {
if (message.equals(userMessages.get(userName))) {
// prevent identical messages
return;