fix (setprofile): Disallow editing tag 0.

This commit is contained in:
2022-01-14 17:36:24 +02:00
parent 767ddc750c
commit 390315e940

View File

@@ -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(