diff options
| author | 2018-07-10 06:46:52 +0000 | |
|---|---|---|
| committer | 2018-07-10 06:46:52 +0000 | |
| commit | 4aa6443db7aa7e8207a0c5bdb2147872a9149e19 (patch) | |
| tree | 57f3d7386a93c6c86ec5d175883176e42cdad66c | |
| parent | Ignore messages sent by bots. (diff) | |
| parent | Allow numbers in off-topic channel names. (diff) | |
Merge branch 'fix-numbers-in-channel-names' into 'master'
Allow numbers in off-topic channel names.
See merge request python-discord/projects/bot!11
| -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(): |