mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Can be isEmpty
This commit is contained in:
parent
433b08238f
commit
7cf4ca3cae
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ public class ChatManager {
|
|||
|
||||
if (messageType != MessageType.GAME) {
|
||||
User user = UserManager.getInstance().getUserByName(userName);
|
||||
if (message != null && userName != null && !userName.equals("")) {
|
||||
if (message != null && userName != null && !userName.isEmpty()) {
|
||||
|
||||
if (message.equals(userMessages.get(userName))) {
|
||||
// prevent identical messages
|
||||
|
|
Loading…
Reference in a new issue