summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-03-08 01:59:51 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2016-03-08 01:59:51 +0100
commit09c7d9a65d5459d97fac5827099aadb8bff3c69a (patch)
tree898f4f8b0db2e4009b39473440aead4bd61f63c4 /degesch.c
parent0f1fd2eb3ab83df73e225c894b2a1824431551f4 (diff)
downloadxK-09c7d9a65d5459d97fac5827099aadb8bff3c69a.tar.gz
xK-09c7d9a65d5459d97fac5827099aadb8bff3c69a.tar.xz
xK-09c7d9a65d5459d97fac5827099aadb8bff3c69a.zip
degesch: fix mIRC color parsing
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index c22600d..c433733 100644
--- a/degesch.c
+++ b/degesch.c
@@ -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))