diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2016-03-08 01:59:51 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2016-03-08 01:59:51 +0100 |
commit | 09c7d9a65d5459d97fac5827099aadb8bff3c69a (patch) | |
tree | 898f4f8b0db2e4009b39473440aead4bd61f63c4 | |
parent | 0f1fd2eb3ab83df73e225c894b2a1824431551f4 (diff) | |
download | xK-09c7d9a65d5459d97fac5827099aadb8bff3c69a.tar.gz xK-09c7d9a65d5459d97fac5827099aadb8bff3c69a.tar.xz xK-09c7d9a65d5459d97fac5827099aadb8bff3c69a.zip |
degesch: fix mIRC color parsing
-rw-r--r-- | degesch.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)) |