aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-07-04 12:40:16 +0200
committerGravatar Johannes Christ <[email protected]>2018-07-04 12:40:16 +0200
commite92759a8467602e6fbc8ad3cf240227ce3ed3123 (patch)
treeda4d7a0df1b744295f3db3a852fe4aa58b2bf58d
parent[Announcements] Screw it, we don't need to remove the messages (diff)
Allow numbers in off-topic channel names.
-rw-r--r--bot/cogs/off_topic_names.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/off_topic_names.py b/bot/cogs/off_topic_names.py
index 2a3cb2aa7..922847918 100644
--- a/bot/cogs/off_topic_names.py
+++ b/bot/cogs/off_topic_names.py
@@ -20,10 +20,10 @@ class OffTopicName(Converter):
if not (2 <= len(argument) <= 96):
raise BadArgument("Channel name must be between 2 and 96 chars long")
- elif not all(c.isalpha() or c == '-' for c in argument):
+ elif not all(c.isalnum() or c == '-' for c in argument):
raise BadArgument(
"Channel name must only consist of"
- " alphabetic characters or minus signs"
+ " alphanumeric characters or minus signs"
)
elif not argument.islower():