This commit is contained in:
Mirco Wittrien 2021-04-01 13:10:47 +02:00
parent d63d60a109
commit f446469f5a
2 changed files with 10 additions and 9 deletions

View File

@ -17,12 +17,12 @@ module.exports = (_ => {
"info": {
"name": "EditUsers",
"author": "DevilBro",
"version": "4.1.6",
"version": "4.1.7",
"description": "Allows you to locally edit Users"
},
"changeLog": {
"fixed": {
"Mentions": ""
"Tags in DMs List": "Fixed overflowing tags in dms turning invisible"
}
}
};
@ -180,6 +180,7 @@ module.exports = (_ => {
bottom: 1px;
}
${BDFDB.dotCNS.dmchannel + BDFDB.dotCN.bottag} {
display: inline;
margin-left: 4px;
}
${BDFDB.dotCNS.userinfo + BDFDB.dotCN.userinfodiscriminator} {
@ -933,12 +934,12 @@ module.exports = (_ => {
}
processPrivateChannel (e) {
if (e.instance.props.user && settings.changeInDmsList) {
if (e.instance.props.user && settings.changeInDmsList && changedUsers[e.instance.props.user.id]) {
if (!e.returnvalue) {
let data = changedUsers[e.instance.props.user.id];
if (data && (data.removeStatus || data.status || data.statusEmoji)) {
if (data.removeStatus || data.status || data.statusEmoji) {
e.instance.props.activities = [].concat(e.instance.props.activities).filter(n => n.type != BDFDB.DiscordConstants.ActivityTypes.CUSTOM_STATUS);
let activity = this.createCustomStatus(data);
let activity = this.createCustomStatus(changedUsers[e.instance.props.user.id]);
if (activity) e.instance.props.activities.unshift(activity);
}
}

View File

@ -17,12 +17,12 @@ module.exports = (_ => {
"info": {
"name": "WriteUpperCase",
"author": "DevilBro",
"version": "1.2.9",
"version": "1.3.0",
"description": "Changes the first Letter of each Sentence in Message Inputs to Uppercase"
},
"changeLog": {
"improved": {
"Settings": "You can now disable/enable it form normal/edit/upload textareas"
"fixed": {
"Mentions": "No longer acts weird with mentions"
}
}
};
@ -133,7 +133,7 @@ module.exports = (_ => {
let type = BDFDB.LibraryModules.StringUtils.upperCaseFirstChar(e.instance.props.type || "");
if (e.instance.props.textValue && e.instance.state.focused && (!type || settings["change" + type] || settings["change" + type] === undefined)) {
let string = e.instance.props.textValue;
if (string.length && !/:[A-z0-9_-]+:|[\uD83C-\uDBFF\uDC00-\uDFFF]+/.test(string)) {
if (string.length && !/<[#@]\d+>|:[A-z0-9_-]+:|[\uD83C-\uDBFF\uDC00-\uDFFF]+/.test(string)) {
let newString = string, stop = false;
for (let space of spaces) for (let symbol of symbols) if (!stop) {
let reg;