IrcColors: Dont color wumpus in Role Settings (#3272)

This commit is contained in:
sadan4 2025-03-21 08:26:49 -04:00 committed by GitHub
parent 16910c95ad
commit d178dcc480
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,9 +81,13 @@ export default definePlugin({
],
calculateNameColorForMessageContext(context: any) {
const id = context?.message?.author?.id;
const userId: string | undefined = context?.message?.author?.id;
const colorString = context?.author?.colorString;
const color = calculateNameColorForUser(id);
const color = calculateNameColorForUser(userId);
// Color preview in role settings
if (context?.message?.channel_id === "1337" && userId === "313337")
return colorString;
if (settings.store.applyColorOnlyInDms && !context?.channel?.isPrivate()) {
return colorString;