diff options
| author | 2018-07-04 12:40:16 +0200 | |
|---|---|---|
| committer | 2018-07-04 12:40:16 +0200 | |
| commit | e92759a8467602e6fbc8ad3cf240227ce3ed3123 (patch) | |
| tree | da4d7a0df1b744295f3db3a852fe4aa58b2bf58d | |
| 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.py | 4 |
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(): |