summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2021-10-16 21:47:44 -0400
committerKyle Gunger <kgunger12@gmail.com>2021-10-16 21:47:44 -0400
commitc4cd3f3b7aeedef5399a296cdf34a7e471372a51 (patch)
tree41866fd60ec08821faa63ab8a00c7e7d1c63d03e /scripts
parent84e33c394a9611dfde7472b0d651d0f3b4600352 (diff)
[Chat] Hotfix for blank messsages
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)