Don't send empty lines

This commit is contained in:
Guangcong Luo
2013-05-09 21:06:10 -07:00
parent 3ed53701d5
commit 3044059652

View File

@@ -51,6 +51,10 @@
e.stopPropagation();
var text;
if ((text = this.$chatbox.val())) {
if (!$.trim(text)) {
this.$chatbox.val('');
return;
}
this.tabComplete.reset();
// this.chatHistory.push(text);
text = this.parseCommand(text);