diff options
| author | 2020-04-06 21:18:09 +0200 | |
|---|---|---|
| committer | 2020-04-06 21:18:09 +0200 | |
| commit | e3d7afa44346ee7d2e123668e55b623dc901515d (patch) | |
| tree | c1ad67ba9d610af671e2abe5448f440ea4fcc9da | |
| parent | Use 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.py | 2 |
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( |