diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-10-16 21:47:44 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-10-16 21:47:44 -0400 |
commit | c4cd3f3b7aeedef5399a296cdf34a7e471372a51 (patch) | |
tree | 41866fd60ec08821faa63ab8a00c7e7d1c63d03e /scripts | |
parent | 84e33c394a9611dfde7472b0d651d0f3b4600352 (diff) |
[Chat] Hotfix for blank messsages
Diffstat (limited to 'scripts')
-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) |