aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-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]