Skip to content

Commit

Permalink
fixed /dc
Browse files Browse the repository at this point in the history
  • Loading branch information
probablyjassin committed Dec 15, 2024
1 parent f138389 commit 7363be2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cogs/profiles/disconnects.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@ async def disconnects_add(

if player in ctx.mogi.players:
player: PlayerProfile = next(
(
p
for p in ctx.mogi.players
if p.discord_id == searched_player
or p.name == searched_player.lower()
),
(p for p in ctx.mogi.players if p.discord_id == player.discord_id),
None,
)

Expand Down

0 comments on commit 7363be2

Please sign in to comment.