Merge pull request #1602 from spjspj/master

spjspj - Make mistakes for user-chat commands less obtrusive
This commit is contained in:
spjspj 2016-03-06 22:52:17 +11:00
commit 1539819e94

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;
}
}