diff options
| author | 2019-01-16 11:24:47 +0000 | |
|---|---|---|
| committer | 2019-01-16 11:24:47 +0000 | |
| commit | 3b75519fb02364f59638939aaad4edc63fefe139 (patch) | |
| tree | ba019cbb88879434a24abcdc1bb902102717d6bf | |
| parent | Support IRC colors 16 through 98 (diff) | |
| signature | ||
Fix regression that caused only foreground to be parsed if there's foreground
AND background formatting (src.utils.irc)
| -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 503ff3ce..b897ee6e 100644 --- a/src/utils/irc.py +++ b/src/utils/irc.py @@ -226,10 +226,11 @@ def parse_format(s: str) -> str: background = _color_match(match.group(2), False) if foreground: + replace += foreground has_foreground = True if background: + replace += background has_background = True - replace += foreground or background else: if has_foreground: has_foreground = False |
