ElvUI
ElvUI copied to clipboard
Don't ClassColor names less than 3 characters
I've noticed a growing trend of people creating characters with names only two characters long. This commit prevents words like he, it, to, my, no, etc. being coloured as the class of the player that used them.
I don't think thats necessary because you can already exclude names that you don't want to be colored in the elvui setrtings.
Yeah I saw that, I was constantly adding players to it though.
Yeah super annoying, would love to see that merged
In order to accept this, you have to change it a bit and add the ability to completly disable it. For example add a slider to chat settings and modify the code to look something like this. If the slider is set to 0 it will be disabled. I think this is the most ideal way
if wordMatch and (E.global.chat.classColorMentionLetterThreshold > 0 and strlen(lowerCaseWord) >= E.global.chat.classColorMentionLetterThreshold) and not E.global.chat.classColorMentionExcludedNames[wordMatch] then local classColorTable = CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS[classMatch] or RAID_CLASS_COLORS[classMatch] end
In order to accept this, you have to change it a bit and add the ability to completly disable it.
Done