Removed pointless disconnecting of player for spamming chat. It now just ignores the message.

This commit is contained in:
CodeForFame 2011-06-25 18:04:26 -05:00
parent 38cc620c56
commit 0a92efc01e

View File

@ -579,9 +579,8 @@ public final class Player extends Mob {
} }
public void addMessageToChatQueue(byte[] messageData) { public void addMessageToChatQueue(byte[] messageData) {
if (chatQueue.size() <= 2) {
chatQueue.add(new ChatMessage(this, messageData)); chatQueue.add(new ChatMessage(this, messageData));
if (chatQueue.size() > 2) {
destroy(false);
} }
} }