diff options
-rw-r--r-- | scripts/gui/chat.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/gui/chat.js b/scripts/gui/chat.js index f3b0975..b412694 100644 --- a/scripts/gui/chat.js +++ b/scripts/gui/chat.js @@ -108,9 +108,10 @@ class Chat { sendMessage () { var str = this.chatInput.value; + if(str == "") + return; this.chatInput.value = ""; this.socket.send("chat", str); - } recieveMessage (channel, msg) |