From 390315e940dcf936b01a1ef29de6b5eeb1bb8c94 Mon Sep 17 00:00:00 2001 From: Conatum Date: Fri, 14 Jan 2022 17:36:24 +0200 Subject: [PATCH] fix (setprofile): Disallow editing tag `0`. --- bot/modules/stats/setprofile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot/modules/stats/setprofile.py b/bot/modules/stats/setprofile.py index 9618b388..550d793a 100644 --- a/bot/modules/stats/setprofile.py +++ b/bot/modules/stats/setprofile.py @@ -98,6 +98,8 @@ async def cmd_setprofile(ctx, flags): return await ctx.error_reply( f"Sorry, you can have a maximum of `{MAX_TAGS}` tags!" ) + if tagid == 0: + return await ctx.error_reply("Tags start at `1`!") # Retrieve the user's current taglist rows = profile_tags.select_where(