mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
Fix HISTORY command.
This commit is contained in:
parent
7f29b45f6e
commit
665601b355
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ public class ChatManager {
|
|||
private boolean performUserCommand(User user, String message, UUID chatId) {
|
||||
String command = message.substring(1).trim().toUpperCase(Locale.ENGLISH);
|
||||
if (command.startsWith("H ") || command.startsWith("HISTORY ")) {
|
||||
message = UserManager.getInstance().getUserHistory(message.substring(command.startsWith("H ") ? 3 : 8));
|
||||
message = UserManager.getInstance().getUserHistory(message.substring(command.startsWith("H ") ? 3 : 9));
|
||||
chatSessions.get(chatId).broadcastInfoToUser(user, message);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue