diff options
| author | 2018-12-12 11:49:42 +0000 | |
|---|---|---|
| committer | 2018-12-12 11:49:42 +0000 | |
| commit | d5467aefe9373ce3ebce04529464b3fdbd08f796 (patch) | |
| tree | d63b662d7e450bd4649ab8869411cf579a597f3d /src/utils/irc.py | |
| parent | Preserve logged exc_info across threads (diff) | |
| signature | ||
Support '99' as a 'transparent' irc color code
Diffstat (limited to 'src/utils/irc.py')
| -rw-r--r-- | src/utils/irc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/irc.py b/src/utils/irc.py index e1021587..1d688226 100644 --- a/src/utils/irc.py +++ b/src/utils/irc.py @@ -163,7 +163,8 @@ def _color_tokens(s: str) -> typing.List[str]: if can_add: current_color = background if is_background else foreground if current_color: - can_add = int(current_color + char) <= 15 + next_color = int(current_color + char) + can_add = next_color <= 15 or next_color = 99 if can_add: if is_background: |
