aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-14 08:09:01 +0000
committerGravatar jesopo2018-11-14 08:09:01 +0000
commit00eb4027ec209f45c2ad88db5c1cee62782671c5 (patch)
tree28fa9f93e2fe3678a487a813e7c5a396002eb778 /src/utils
parentBold reset is 22, not 21 (diff)
signature
Only reset ansi bolding when both color-bold and bold are false
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/irc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/irc.py b/src/utils/irc.py
index 4e6991e4..4366573d 100644
--- a/src/utils/irc.py
+++ b/src/utils/irc.py
@@ -201,7 +201,7 @@ def to_ansi_colors(s):
else:
if color:
replace += utils.consts.ANSI_COLOR_RESET
- if ansi_bold:
+ if ansi_bold and not bold:
replace += utils.consts.ANSI_BOLD_RESET
color = False
ansi_bold = False