From 09c7d9a65d5459d97fac5827099aadb8bff3c69a Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Tue, 8 Mar 2016 01:59:51 +0100
Subject: degesch: fix mIRC color parsing
---
degesch.c | 4 ++++
1 file changed, 4 insertions(+)
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))
--
cgit v1.2.3-70-g09d2