spjspj - Make mistakes in using user-chat commands less visible to the whole chat

This commit is contained in:
spjspj 2016-03-06 22:46:13 +11:00
parent 619856c8f5
commit 6116320591

View file

@ -111,7 +111,10 @@ public class ChatManager {
if (chatSession != null) {
if (message.startsWith("\\") || message.startsWith("/")) {
User user = UserManager.getInstance().getUserByName(userName);
if (user != null && performUserCommand(user, message, chatId)) {
if (user != null) {
if (!performUserCommand(user, message, chatId)) {
performUserCommand(user, "LIST", chatId);
}
return;
}
}