From 6207207af3f3336b45f6954722ee97827abe304b Mon Sep 17 00:00:00 2001 From: gamatecal Date: Mon, 29 Mar 2010 04:03:10 +0000 Subject: [PATCH] Getting sick of the constant 'L' 'R' 'D' 'U' packets cluttering 80% of the log files. We know it works, preventing it from being shown. --- Server/src/org/pokenet/server/network/TcpProtocolHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Server/src/org/pokenet/server/network/TcpProtocolHandler.java b/Server/src/org/pokenet/server/network/TcpProtocolHandler.java index dbcf3505b..74ed6bf92 100644 --- a/Server/src/org/pokenet/server/network/TcpProtocolHandler.java +++ b/Server/src/org/pokenet/server/network/TcpProtocolHandler.java @@ -84,7 +84,9 @@ public void exceptionCaught(IoSession session, Throwable t) public void messageReceived(IoSession session, Object msg) throws Exception { String message = (String) msg; String [] details; - System.out.println(message); + if (!message.equals("L") && !message.equals("R") && !message.equals("D") && !message.equals("U")) { + System.out.println(message); + } if(session.getAttribute("player") == null) { /* * The player hasn't been logged in, only allow login and registration packets