degesch: fix mIRC color parsing
This commit is contained in:
parent
0f1fd2eb3a
commit
09c7d9a65d
@ -3004,7 +3004,11 @@ static const char *
|
||||
formatter_parse_mirc_color (struct formatter *self, const char *s)
|
||||
{
|
||||
if (!isdigit_ascii (*s))
|
||||
{
|
||||
FORMATTER_ADD_ITEM (self, FG_COLOR, .color = -1);
|
||||
FORMATTER_ADD_ITEM (self, BG_COLOR, .color = -1);
|
||||
return s;
|
||||
}
|
||||
|
||||
int fg = *s++ - '0';
|
||||
if (isdigit_ascii (*s))
|
||||
|
Loading…
Reference in New Issue
Block a user