diff options
| author | 2020-04-11 22:28:50 +0100 | |
|---|---|---|
| committer | 2020-04-11 22:28:50 +0100 | |
| commit | 4baeb3e6b9add39b09636266c0f641656966443b (patch) | |
| tree | b0293dd9a57233b5a167cec7c2da96547efe66fc | |
| parent | Use in for membership check as opposed to .get() (diff) | |
| parent | Update bot/cogs/stats.py (diff) | |
Merge master
| -rw-r--r-- | bot/cogs/stats.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/stats.py b/bot/cogs/stats.py index 772ae2c97..c15d0eb1b 100644 --- a/bot/cogs/stats.py +++ b/bot/cogs/stats.py @@ -36,7 +36,7 @@ class Stats(Cog): if CHANNEL_NAME_OVERRIDES.get(message.channel.id): reformatted_name = CHANNEL_NAME_OVERRIDES.get(message.channel.id) - reformatted_name = "".join([char for char in reformatted_name if char in ALLOWED_CHARS]) + reformatted_name = "".join(char for char in reformatted_name if char in ALLOWED_CHARS) stat_name = f"channels.{reformatted_name}" self.bot.stats.incr(stat_name) |