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
1 changed files with 2 additions and 3 deletions

View File

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