mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
Update ChatPanelBasic.java
This commit is contained in:
parent
750446a75a
commit
7ae61944f5
1 changed files with 1 additions and 1 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue