use ANSI_RESET in utils.irc.parse_format, not all the different resets

This commit is contained in:
jesopo 2019-11-28 15:42:12 +00:00
parent be4fcc4f3c
commit 411f66324d

View file

@ -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]