summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gui/chat.js3
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)