From 25625b4e961c42be8dfbfc99a7c464a262b618e5 Mon Sep 17 00:00:00 2001 From: Leon Sandøy Date: Sun, 4 Mar 2018 02:32:31 +0100 Subject: Non-alpha tag names no longer allowed. --- bot/cogs/tags.py | 4 ++++ 1 file changed, 4 insertions(+) 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" -- cgit v1.2.3