From f46015d9d8f2ec00a1a3df98d40b413756df8f45 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 17 Nov 2018 12:48:56 +0000 Subject: Minor code styling change in urils.irc --- src/utils/irc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils/irc.py') 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 -- cgit v1.3.1-10-gc9f91