Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbt365 committed Jan 31, 2025
1 parent a8652cf commit 89d1541
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/plugins/ircColors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,9 @@ export default definePlugin({
return colorString;
}

return (settings.store.applyColorOnlyToUsersWithoutColor && !colorString)
return (!settings.store.applyColorOnlyToUsersWithoutColor || !colorString)
? color
: colorString;

},
calculateNameColorForListContext(context: any) {
const id = context?.user?.id;
Expand All @@ -103,7 +102,7 @@ export default definePlugin({
return colorString;
}

return (settings.store.applyColorOnlyToUsersWithoutColor && !colorString)
return (settings.store.applyColorOnlyToUsersWithoutColor || !colorString)
? color
: colorString;
}
Expand Down

0 comments on commit 89d1541

Please sign in to comment.