aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Ben Soyka <[email protected]>2021-12-02 15:34:45 -0700
committerGravatar Ben Soyka <[email protected]>2021-12-02 15:34:45 -0700
commit914e4abe1f168167d8b1126adeb1bc27bff28e6d (patch)
tree1bce6eac042e5affb2edb30a7ec4cd779da17a4a
parentNote that only one layer of quotes is stripped in .aoc lb (diff)
Note why .aoc lb strips quotes from names
-rw-r--r--bot/exts/events/advent_of_code/_cog.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/events/advent_of_code/_cog.py b/bot/exts/events/advent_of_code/_cog.py
index 9ae2d059..3f9f5787 100644
--- a/bot/exts/events/advent_of_code/_cog.py
+++ b/bot/exts/events/advent_of_code/_cog.py
@@ -225,6 +225,7 @@ class AdventOfCode(commands.Cog):
specified profile's personal stats to the top of the leaderboard
"""
# Strip quotes from the AoC username if needed (e.g. "My Name" -> My Name)
+ # This is to keep compatibility with those already used to wrapping the AoC name in quotes
# Note: only strips one layer of quotes to allow names with quotes at the start and end
# e.g. ""My Name"" -> "My Name"
if aoc_name and aoc_name.startswith('"') and aoc_name.endswith('"'):