summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/NetServerHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/NetServerHandler.java')
-rw-r--r--src/main/java/net/minecraft/server/NetServerHandler.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java
index 9f98355e..f0cb509e 100644
--- a/src/main/java/net/minecraft/server/NetServerHandler.java
+++ b/src/main/java/net/minecraft/server/NetServerHandler.java
@@ -724,6 +724,11 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
public boolean chat(String s) {
if (!this.player.dead) {
+ if (s.length() == 0) {
+ a.warning(this.player.name + " tried to send an empty message");
+ return false;
+ }
+
if (s.startsWith("/")) {
this.handleCommand(s);
return true;