degesch: don't use black for nicks on 256-color

Except for self.
This commit is contained in:
Přemysl Eric Janouch 2015-08-11 21:22:44 +02:00
parent 131aee6f08
commit 8a8ff11887
1 changed files with 1 additions and 1 deletions

View File

@ -2522,7 +2522,7 @@ formatter_parse_nick (struct formatter *self, char *s)
// Never use the black colour, could become transparent on black terminals;
// white is similarly excluded from the range
if (color == COLOR_BLACK)
color = -1;
color = (uint16_t) -1;
// Use a color from the 256-color cube if available
color |= self->ctx->nick_palette[siphash_wrapper (nick,