diff options
| author | 2018-03-04 02:32:31 +0100 | |
|---|---|---|
| committer | 2018-03-04 02:32:31 +0100 | |
| commit | 25625b4e961c42be8dfbfc99a7c464a262b618e5 (patch) | |
| tree | a63651e1587f186451e5f5ec0a439d4f6ed1a4ec | |
| parent | Discord.py doesn't support Union type annotations on commands, had to remove ... (diff) | |
Non-alpha tag names no longer allowed.
| -rw-r--r-- | bot/cogs/tags.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/cogs/tags.py b/bot/cogs/tags.py index 5d6488712..ab46be009 100644 --- a/bot/cogs/tags.py +++ b/bot/cogs/tags.py @@ -204,6 +204,10 @@ class Tags: embed.title = "Please don't do that" embed.description = "Don't be ridiculous. Newlines are obviously not allowed in the tag name." + if not tag_name.isalpha(): + embed.title = "Please don't do that" + embed.description = "Only letters in the tag names, please." + else: if not (tag_name and tag_content): embed.title = "Missing parameters" |