From ca6ffc6709b51a9d84b942535ae9680cc872f42e Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Fri, 30 Nov 2018 11:16:41 +0100 Subject: [PATCH] Update EditUsers.plugin.js --- Plugins/EditUsers/EditUsers.plugin.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index f10f6b552a..d006678e92 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -177,7 +177,7 @@ class EditUsers { getDescription () {return "Allows you to change the icon, name, tag and color of users. Does not work in compact mode.";} - getVersion () {return "2.4.4";} + getVersion () {return "2.4.5";} getAuthor () {return "DevilBro";} @@ -314,7 +314,8 @@ class EditUsers { (change, i) => { if (change.addedNodes) { change.addedNodes.forEach((node) => { - if (node.tagName && node.querySelector(BDFDB.dotCN.messageusername) && BDFDB.getData("changeInChatWindow", this, "settings")) { + if (node.tagName && node.classList.contains(BDFDB.disCN.chat)) return; + else if (node.tagName && node.querySelector(BDFDB.dotCN.messageusername) && BDFDB.getData("changeInChatWindow", this, "settings")) { if (node.classList.contains(BDFDB.disCN.modal) || node.classList.contains(BDFDB.disCN.popout)) { for (let messagegroup of node.querySelectorAll(BDFDB.dotCN.messagegroupcozy)) { this.loadUser(messagegroup, "chat", false); @@ -759,6 +760,7 @@ class EditUsers { var info = this.getUserInfo(compact && !div.classList.contains(BDFDB.disCN.messagegroup) ? $(BDFDB.dotCN.messagegroup).has(div)[0] : div); if (!info) return; + var data = BDFDB.loadData(info.id, this, "users"); if (data) {