fix in lobby check

This commit is contained in:
leander committed 2026-10-24 04:14:22 +02:00
1 parent 97087251bf
commit 24416aa216
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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")
)
+1 -1
View File
@@ -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",