diff options
| author | 2018-11-17 12:48:56 +0000 | |
|---|---|---|
| committer | 2018-11-17 12:48:56 +0000 | |
| commit | f46015d9d8f2ec00a1a3df98d40b413756df8f45 (patch) | |
| tree | bc8425086c470e59ea3b3fd17022cd42b6082712 /src/utils/irc.py | |
| parent | Minor code styling change in modules/8ball.py (diff) | |
| signature | ||
Minor code styling change in urils.irc
Diffstat (limited to 'src/utils/irc.py')
| -rw-r--r-- | src/utils/irc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/irc.py b/src/utils/irc.py index 58ee3ef5..df670c53 100644 --- a/src/utils/irc.py +++ b/src/utils/irc.py @@ -217,11 +217,11 @@ def to_ansi_colors(s: str) -> str: replace += utils.consts.ANSI_FORMAT % background else: if has_foreground: + has_foreground = False replace += utils.consts.ANSI_FOREGROUND_RESET if has_background: + has_background = False replace += utils.consts.ANSI_BACKGROUND_RESET - has_foreground = False - has_background = False elif type == utils.consts.BOLD: if bold: replace += utils.consts.ANSI_BOLD_RESET |
