From 411f66324d5957a4075e0bbdca6b35ac919438d1 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 28 Nov 2019 15:42:12 +0000 Subject: use ANSI_RESET in utils.irc.parse_format, not all the different resets --- src/utils/irc.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/utils') diff --git a/src/utils/irc.py b/src/utils/irc.py index cdaa61eb..64c0fd1c 100644 --- a/src/utils/irc.py +++ b/src/utils/irc.py @@ -175,15 +175,7 @@ def parse_format(s: str) -> str: s = s.replace(token, replace, 1) - if has_foreground: - s += consts.ANSI_FOREGROUND_RESET - if has_background: - s += consts.ANSI_BACKGROUND_RESET - if bold: - s += consts.ANSI_BOLD_RESET - if underline: - s += consts.ANSI_UNDERLINE_RESET - + s += consts.ANSI_RESET return s OPT_STR = typing.Optional[str] -- cgit v1.3.1-10-gc9f91