Merge pull request 'master' (#6) from External/mage:master into master
All checks were successful
/ example-docker-compose (push) Successful in 17m50s

Reviewed-on: #6
This commit is contained in:
Failure 2024-12-02 20:41:24 -08:00
commit 3c75e2f970
325 changed files with 3029 additions and 710 deletions

View file

@ -265,7 +265,7 @@ public class ChatPanelBasic extends javax.swing.JPanel {
}
String cachedProfanityFilterValue = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_GAME_USE_PROFANITY_FILTER, "0");
boolean isContainsSwearing = !containsSwearing(messageToTest, cachedProfanityFilterValue);
boolean isContainsSwearing = containsSwearing(messageToTest, cachedProfanityFilterValue);
boolean isUserInfoOrGameOrStatus = messageType == MessageType.USER_INFO || messageType == MessageType.GAME || messageType == MessageType.STATUS;
if (isUserInfoOrGameOrStatus || cachedProfanityFilterValue.equals("0") || (!cachedProfanityFilterValue.equals("0") && !isContainsSwearing)) {
if (username != null && !username.isEmpty()) {