Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,6 @@ chastitybrausers.txt
wearables.txt
webhooks.txt
/downloaded
/backups
/backups
crashlog.txt
toyusers.txt
6 changes: 4 additions & 2 deletions functions/messagefunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,11 @@ function getAlternateName(user) {
}

// Finally, if the outname is EXACTLY the same as the displayName we recieved,
// or the user's display name can be found in the modified name return it
// or the user's display name can be found in the modified name,
// or the modified name can be found in the user's display name, return it
if ((user.displayName.toLowerCase() == outname.toLowerCase()) ||
(outname.toLowerCase().includes(user.displayName.toLowerCase()))) { return outname }
(outname.toLowerCase().includes(user.displayName.toLowerCase())) ||
(user.displayName.toLowerCase().includes(outname.toLowerCase()))) { return outname }

// Otherwise, we need to append the user's display name as we can
let additionalpart = ``;
Expand Down
Loading