Fix CustomUserColors
Some checks failed
Release / Build Equicord (push) Has been cancelled
Test / Test (push) Has been cancelled

This commit is contained in:
thororen1234 2025-04-23 18:27:51 -04:00
parent b0ea6e838c
commit f5c099c4a4
No known key found for this signature in database

View file

@ -98,8 +98,8 @@ export default definePlugin({
// this also affects name headers in chats outside of servers // this also affects name headers in chats outside of servers
find: '="SYSTEM_TAG"', find: '="SYSTEM_TAG"',
replacement: { replacement: {
match: /\i.gradientClassName]\),style:/, match: /(?<=\.username.{0,50}?)style:/,
replace: "$&{color:$self.colorIfServer(arguments[0])},_style:" replace: "style:{color:$self.colorIfServer(arguments[0])},_style:"
}, },
predicate: () => !Settings.plugins.IrcColors.enabled predicate: () => !Settings.plugins.IrcColors.enabled
}, },