From 24416aa216c022285b7f1c72a160438ccf35990b Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Sat, 24 Oct 2026 04:14:22 +0200 Subject: [PATCH] fix in lobby check --- src/cogs/cs2_bingo.py | 2 +- src/cogs/ten_man.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cogs/cs2_bingo.py b/src/cogs/cs2_bingo.py index a3b8842..7a8ed3c 100644 --- a/src/cogs/cs2_bingo.py +++ b/src/cogs/cs2_bingo.py @@ -53,7 +53,7 @@ class CS2Bingo(commands.Cog): ) for lobby in self.active_lobbies.values(): - if interaction.user.id in lobby.players: + if lobby.ends > datetime.now() and any(p.id == interaction.user.id for p in lobby.players): return await interaction.response.send_message( embed=embed_templates.error_warning("Du er allerede i en lobby") ) diff --git a/src/cogs/ten_man.py b/src/cogs/ten_man.py index b85359d..3914660 100644 --- a/src/cogs/ten_man.py +++ b/src/cogs/ten_man.py @@ -57,7 +57,7 @@ class TenMan(commands.Cog): ) for lobby in self.active_lobbies.values(): - if interaction.user.id in lobby.players: + if lobby.ends > datetime.now() and any(p.id == interaction.user.id for p in lobby.players): return await interaction.response.send_message( embed=embed_templates.error_warning( "Du er allerede i en lobby",