degesch: fix mIRC color parsing

This commit is contained in:
Přemysl Eric Janouch 2016-03-08 01:59:51 +01:00
parent 0f1fd2eb3a
commit 09c7d9a65d
1 changed files with 4 additions and 0 deletions

View File

@ -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))