diff --git a/assets/client.js b/assets/client.js index 0ac150c..a54e5aa 100644 --- a/assets/client.js +++ b/assets/client.js @@ -191,6 +191,9 @@ composerElt.onsubmit = function(event) { } var target = activeBuffer.name; var text = composerInputElt.value; + if (!text) { + return; + } var msg = { command: "PRIVMSG", params: [target, text] }; ws.send(formatMessage(msg)); msg.prefix = { name: server.nick };