aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar jesopo2019-11-28 15:42:12 +0000
committerGravatar jesopo2019-11-28 15:42:12 +0000
commit411f66324d5957a4075e0bbdca6b35ac919438d1 (patch)
treedad604e4d66d3f10afc6dcae5ca801eb239b3f01 /src
parentremove old api keys from docs/bot.config.example (diff)
signature
use ANSI_RESET in utils.irc.parse_format, not all the different resets
Diffstat (limited to 'src')
-rw-r--r--src/utils/irc.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/utils/irc.py b/src/utils/irc.py
index cdaa61eb..64c0fd1c 100644
--- a/src/utils/irc.py
+++ b/src/utils/irc.py
@@ -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]