mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
Fix spam filter on a per-user basis and implement rudimentary swear guard.
This commit is contained in:
parent
08ffbb7d3c
commit
af725f8a6e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue