Fix bolding/unbolding code in utils.irc
This commit is contained in:
parent
0b1881b1a9
commit
5c6aa87470
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue