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: