aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-11-04 13:33:10 +0000
committerGravatar jesopo2019-11-04 13:33:10 +0000
commit09fe1c5a7007366ff64504f213c1563eda29cab7 (patch)
tree5a109114049cbf9fbf60af0cef6f651d193045ab
parentshow when a fediverse Note is nothing but an attachment (diff)
signature
don't stop parsing colors at comma
-rw-r--r--src/utils/irc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/irc.py b/src/utils/irc.py
index 72593f40..81db0113 100644
--- a/src/utils/irc.py
+++ b/src/utils/irc.py
@@ -84,7 +84,7 @@ def _format_tokens(s: str) -> typing.List[str]:
is_background = True
color_finished = False
- if not char.isdigit() or last_char or color_finished:
+ if color_finished or last_char:
color = foreground
if background:
color += ","+background