mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
fix in lobby check
This commit is contained in:
1 parent
97087251bf
commit
24416aa216
2 files changed
+2
-2
No files matched your search
@@ -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
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user