mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
Avoid sending empty messages
This commit is contained in:
parent
55e1107e38
commit
038d175f0e
1 changed files with 3 additions and 0 deletions
|
@ -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 };
|
||||
|
|
Loading…
Reference in a new issue