Fix bolding/unbolding code in utils.irc

This commit is contained in:
jesopo 2018-11-13 18:05:25 +00:00
parent 0b1881b1a9
commit 5c6aa87470

View file

@ -207,8 +207,9 @@ def to_ansi_colors(s):
ansi_bold = False
elif type == utils.consts.BOLD:
if bold:
replace += utils.consts.ANSI_BOLD_RESET
if bold:
if not ansi_bold:
replace += utils.consts.ANSI_BOLD_RESET
else:
replace += utils.consts.ANSI_BOLD
bold = not bold