Bug #3845
closed$nickcolor not working in prefixuser
0%
Description
Hi,
the variable $nickcolor is not working in the Message prefix -> User textbox
Files
Updated by Per Amundsen over 6 years ago
It only works if you have set a nickcolor for that nick or using random nickcolors, it does not work for extended (rgb colors), $rgbnickcolor must be used for them.
Updated by kel po over 6 years ago
- File nickcolor.PNG nickcolor.PNG added
i have a nickcolor set, please see the attached screenshot
Updated by Per Amundsen over 6 years ago
First of all, that is not how to use $nickcolor, $nickcolor returns the color number associated with the nick, nick colors must be enabled in Options -> Nick Colors, and there must be either a rule for the nick or random nick colors must be enabled.
If you only want the nick to be colored, you don't need to use $nickcolor, once nick colors are enabled the $pnick variable will already have the color.
A typical use case for $nickcolor is to allow coloring more than just the nick, something like <nickcolorchar>$nickcolor[$nick]<nickcolorchar>, in this case [nick] will be colored using the nick color, instead of just the nick.
Updated by Per Amundsen over 6 years ago
- Status changed from New to Invalid
I updated the Options -> Messages -> Message prefix User wiki, hopefully it makes it more clear how it works.
The default prefix is <$pnick>: btw, you should use $pnick unless you want to manually create a prefix like in the wiki examples.