chat: add suggestions for commands, reduce 'joined' spam, make server prints white

This commit is contained in:
moscovium
2018-02-20 12:01:29 +01:00
parent da7bcd01f4
commit 7fe212f655
4 changed files with 75 additions and 2 deletions

View File

@@ -68,6 +68,9 @@ window.APP = {
if (!suggestion.params) {
suggestion.params = []; //TODO Move somewhere else
}
if (this.suggestions.find(a => a.name == suggestion.name)) {
return;
}
this.suggestions.push(suggestion);
},
ON_SUGGESTION_REMOVE({ name }) {