From 1297901dca42be1bedbc02713ab9c3ad5ccd9010 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 14 Nov 2018 22:50:04 +0000 Subject: [PATCH] We do indeed need to see "\x03" even when there's no foreground/background (color reset) --- src/utils/irc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/irc.py b/src/utils/irc.py index af30c6fd..58ee3ef5 100644 --- a/src/utils/irc.py +++ b/src/utils/irc.py @@ -170,8 +170,7 @@ def _color_tokens(s: str) -> typing.List[str]: if len(background) > 1: color += background - if color: - matches.append("\x03%s" % color) + matches.append("\x03%s" % color) is_color = False foreground = "" background = ""