aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-14 22:50:04 +0000
committerGravatar jesopo2018-11-14 22:50:04 +0000
commit1297901dca42be1bedbc02713ab9c3ad5ccd9010 (patch)
treef11c260811f526c9a38b999c752437155883a10b /src/utils
parentDon't eat commas when there's no background color or when a comma directly (diff)
signature
We do indeed need to see "\x03" even when there's no foreground/background
(color reset)
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/irc.py3
1 files changed, 1 insertions, 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 = ""