From 2aeee1533ba7890bfdf6d09cecf86c297b712bb1 Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Sat, 23 Mar 2019 20:35:06 -0700 Subject: [PATCH] [Chatchart] Escape dollar signs Closes #40. --- chatchart/chatchart.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chatchart/chatchart.py b/chatchart/chatchart.py index 1238a3c..7361775 100644 --- a/chatchart/chatchart.py +++ b/chatchart/chatchart.py @@ -105,9 +105,9 @@ class Chatchart(BaseCog): for msg in history: if len(msg.author.name) >= 20: - short_name = "{}...".format(msg.author.name[:20]) + short_name = "{}...".format(msg.author.name[:20]).replace("$", "\$") else: - short_name = msg.author.name + short_name = msg.author.name.replace("$", "\$") whole_name = "{}#{}".format(short_name, msg.author.discriminator) if msg.author.bot: pass