]> git.cworth.org Git - turbot/commitdiff
Don't put the puzzle name into the channel topic
authorCarl Worth <cworth@cworth.org>
Sat, 8 Jan 2022 09:01:31 +0000 (01:01 -0800)
committerCarl Worth <cworth@cworth.org>
Sat, 8 Jan 2022 09:01:31 +0000 (01:01 -0800)
Since hunt writers do various things to torture us, (see Infinite
Corridor), and since the channel topic has a small limit, don't put
the puzzle title into the topic. Otherwise, a long puzzle title could
force the important links to not appear at all in the topic.

turbot/puzzle.py

index caf6cede14e0a86ea6e4020ee4abbfd2a8bed745..a6d3ffd809b2af59e44f564e1ae78092588d7f4c 100644 (file)
@@ -249,8 +249,6 @@ def puzzle_channel_topic(puzzle):
     if puzzle['status'] == 'solved':
         topic += "SOLVED: `{}` ".format('`, `'.join(puzzle['solution']))
 
-    topic += puzzle['name']
-
     links = []
 
     url = puzzle.get('url', None)
@@ -262,7 +260,7 @@ def puzzle_channel_topic(puzzle):
         links.append("<{}|Sheet>".format(sheet_url))
 
     if len(links):
-        topic += "({})".format(', '.join(links))
+        topic += "({}) ".format(', '.join(links))
 
     tags = puzzle.get('tags', [])
     if tags: