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 ansi_bold = False
elif type == utils.consts.BOLD: elif type == utils.consts.BOLD:
if bold: if bold:
replace += utils.consts.ANSI_BOLD_RESET if not ansi_bold:
if bold: replace += utils.consts.ANSI_BOLD_RESET
else:
replace += utils.consts.ANSI_BOLD replace += utils.consts.ANSI_BOLD
bold = not bold bold = not bold