Update EditUsers.plugin.js

This commit is contained in:
Mirco Wittrien 2019-01-02 12:54:04 +01:00
parent 1d5460393e
commit ef974bdde0
1 changed files with 1 additions and 1 deletions

View File

@ -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();