From ef974bdde0f822d9227e901711d49254ea2f371f Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Wed, 2 Jan 2019 12:54:04 +0100 Subject: [PATCH] Update EditUsers.plugin.js --- Plugins/EditUsers/EditUsers.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index 54243514f6..1fd3a5466d 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -734,7 +734,7 @@ class EditUsers { let data = this.getUserData(info.id, mention); let member = this.MemberUtils.getMember(this.LastGuildStore.getGuildId(), info.id) || {}; let color1 = BDFDB.colorCONVERT(data.color1 || (BDFDB.isPluginEnabled("BetterRoleColors") ? member.colorString : null), "RGBCOMP"); - let name = BDFDB.isPluginEnabled("RemoveNicknames") ? bdplugins.RemoveNicknames.plugin.getNewName(info) : data.name || member.nick || info.username; + let name = data.name ? data.name : (BDFDB.isPluginEnabled("RemoveNicknames") ? bdplugins.RemoveNicknames.plugin.getNewName(info) : member.nick || info.username); BDFDB.setInnerText(mention, "@" + name); if (mention.EditUsersHovered) colorHover(); else colorDefault();