aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2020-04-06 21:18:09 +0200
committerGravatar Sebastiaan Zeeff <[email protected]>2020-04-06 21:18:09 +0200
commite3d7afa44346ee7d2e123668e55b623dc901515d (patch)
treec1ad67ba9d610af671e2abe5448f440ea4fcc9da
parentUse configurable prefix to clean help channel names (diff)
Use clean help channel name for used name set
The set that keeps track of the used channel names should discard emojis. To do that, I'm cleaning the names before they're added to the set of channel names.
-rw-r--r--bot/cogs/help_channels.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py
index 2e203df46..1e062ca46 100644
--- a/bot/cogs/help_channels.py
+++ b/bot/cogs/help_channels.py
@@ -273,7 +273,7 @@ class HelpChannels(Scheduler, commands.Cog):
names = set()
for cat in (self.available_category, self.in_use_category, self.dormant_category):
for channel in self.get_category_channels(cat):
- names.add(channel.name)
+ names.add(self.get_clean_channel_name(channel))
if len(names) > MAX_CHANNELS_PER_CATEGORY:
log.warning(