From c4cd3f3b7aeedef5399a296cdf34a7e471372a51 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sat, 16 Oct 2021 21:47:44 -0400 Subject: [Chat] Hotfix for blank messsages --- scripts/gui/chat.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/gui/chat.js') 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) -- cgit v1.2.3