diff --git a/bot/src/cogs/galtinn.py b/bot/src/cogs/galtinn.py index 041c236..2f42058 100644 --- a/bot/src/cogs/galtinn.py +++ b/bot/src/cogs/galtinn.py @@ -115,6 +115,7 @@ class Galtinn(commands.Cog): await interaction.response.defer() + # Check if user is already registered self.cursor.execute( """ SELECT * @@ -123,12 +124,12 @@ class Galtinn(commands.Cog): """, (interaction.user.id,), ) - if self.cursor.fetchone(): embed = embed_templates.error_warning("Du er allerede registrert med en Galtinnbruker!") await interaction.followup.send(embed=embed) return + # Check if user is already pending verification self.cursor.execute( """ SELECT *