Avoid blank messages
This commit is contained in:
parent
7692a02ab7
commit
fd8c7fe4f7
|
@ -790,6 +790,9 @@ class GlobalBindings {
|
|||
if (target === this.thisUser()) {
|
||||
target = target.channel()
|
||||
}
|
||||
// Avoid blank message
|
||||
message = sanitize(message).trim()
|
||||
if (message.length == 0) return;
|
||||
// Send message
|
||||
target.model.sendMessage(message)
|
||||
if (target.users) { // Channel
|
||||
|
|
Loading…
Reference in a new issue