aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-25 13:32:57 +0000
committerGravatar jesopo2018-11-25 13:32:57 +0000
commit5b70f37796b265e7bfad00e2e47088569ede13c7 (patch)
treec10bd7c5015f967d03d43c07fc59b35727bedc41 /src
parentDon't eat numbers after color formatting if they'd end up making the color code (diff)
signature
also support zero-padded color codes
Diffstat (limited to 'src')
-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 47a425b7..2d7663e0 100644
--- a/src/utils/irc.py
+++ b/src/utils/irc.py
@@ -160,7 +160,7 @@ def _color_tokens(s: str) -> typing.List[str]:
can_add = True
current_color = background if is_background else foreground
if current_color:
- can_add = int(current_color) == 1
+ can_add = int(current_color) < 2
if char.isdigit() and can_add:
if is_background: