From: Scott Worley Date: Sun, 19 Aug 2012 15:14:44 +0000 (-0700) Subject: Don't send empty messages X-Git-Url: http://git.scottworley.com/reliable-chat/commitdiff_plain/cf44a97649f42952e85dca82a91f18fc4e14c1e9?ds=inline Don't send empty messages --- diff --git a/webclient/rc.html b/webclient/rc.html index 2e05a86..7f3e8d1 100644 --- a/webclient/rc.html +++ b/webclient/rc.html @@ -472,7 +472,9 @@ function rckeydown(event) { if (event.keyCode == 13) { - rcinput(document.input.say.value); + if (document.input.say.value) { + rcinput(document.input.say.value); + } document.input.say.value = ""; return false; }