mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Merge pull request #1602 from spjspj/master
spjspj - Make mistakes for user-chat commands less obtrusive
This commit is contained in:
commit
1539819e94
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue