mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 07:10:46 -05:00
Don't send empty lines
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user