diff --git a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/chat/ChatRoom.java b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/chat/ChatRoom.java index c1c047c9f..1ccf9e516 100644 --- a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/chat/ChatRoom.java +++ b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/chat/ChatRoom.java @@ -3,7 +3,7 @@ package com.gempukku.lotro.chat; import java.util.*; public class ChatRoom { - private int _maxMessageHistoryCount = 150; + private int _maxMessageHistoryCount = 500; private LinkedList _lastMessages = new LinkedList(); private Map _chatRoomListeners = new TreeMap( new Comparator() { diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-005/chat.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-005/chat.js index fda6d04fa..3d04008c4 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-005/chat.js +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gemp-005/chat.js @@ -6,6 +6,7 @@ var ChatBoxUI = Class.extend({ chatTalkDiv: null, chatListDiv: null, showTimestamps: false, + maxMessageCount: 500, talkBoxHeight: 25, chatUpdateInterval: 1000, unsentMessages: null, @@ -60,9 +61,9 @@ var ChatBoxUI = Class.extend({ if (showHideSystemButton) { this.hideSystemButton = $("").button( - {icons: { - primary: "ui-icon-zoomin" - }, text: false}); + {icons: { + primary: "ui-icon-zoomin" + }, text: false}); this.hideSystemButton.click( function() { if (that.isShowingMessageClass("systemMessage")) { @@ -78,9 +79,9 @@ var ChatBoxUI = Class.extend({ if (showLockButton) { this.lockButton = $("").button( - {icons: { - primary: "ui-icon-locked" - }, text: false}); + {icons: { + primary: "ui-icon-locked" + }, text: false}); this.lockButton.click( function() { if (that.lockChat) { @@ -107,16 +108,16 @@ var ChatBoxUI = Class.extend({ function(xml) { that.processMessages(xml, true); }, { - "401": function() { - that.appendMessage("You are not logged in, go to the main page to log in.", "warningMessage"); - }, - "403": function() { - that.appendMessage("You have no permission to join this chat.", "warningMessage"); - }, - "404": function() { - that.appendMessage("Chat room was closed, please go to the Game Hall.", "warningMessage"); - } - }); + "401": function() { + that.appendMessage("You are not logged in, go to the main page to log in.", "warningMessage"); + }, + "403": function() { + that.appendMessage("You have no permission to join this chat.", "warningMessage"); + }, + "404": function() { + that.appendMessage("Chat room was closed, please go to the Game Hall.", "warningMessage"); + } + }); this.chatTalkDiv.bind("keypress", function(e) { var code = (e.keyCode ? e.keyCode : e.which); @@ -193,7 +194,7 @@ var ChatBoxUI = Class.extend({ messageDiv.hide(); } - if ($("div.message", this.chatMessagesDiv).length > 150) { + if ($("div.message", this.chatMessagesDiv).length > this.maxMessageCount) { $("div.message", this.chatMessagesDiv).first().remove(); } if (!this.lockChat)