Added basic ignore/unignore functionality
This commit is contained in:
parent
999fae91b7
commit
b80f82b9f2
6 changed files with 139 additions and 1 deletions
|
|
@ -229,6 +229,16 @@ class chatBox{
|
|||
* @param {Object} data De-hydrated chat object from server
|
||||
*/
|
||||
displayChat(data){
|
||||
|
||||
//For every douchebag in the ignored users list
|
||||
for(const douchebag of this.client.user.ignored){
|
||||
//If this message is from the douchebag in question
|
||||
if(data.user == douchebag.user){
|
||||
//tell it to fuck off and die
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
//Append the post-processed chat-body to the chat buffer
|
||||
this.chatBuffer.appendChild(this.chatPostprocessor.postprocess(data));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue