Merge pull request #1493 from menocar/command-fix

Fix HISTORY command.
This commit is contained in:
LevelX2 2016-01-24 12:24:50 +01:00
commit 606f95de23

View file

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