Skip to content

Commit

Permalink
james unmindblocked me
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Apr 18, 2022
1 parent f222511 commit b613b52
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/api/domains/cho.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,7 @@ async def login(
# the osu! client will attempt to join the channels.
for c in app.repositories.channels.cache.values():
if (
not c.auto_join
or not app.usecases.channels.can_read(c, player.priv)
not app.usecases.channels.can_read(c, player.priv)
or c._name == "#lobby" # (can't be in mp lobby @ login)
):
continue
Expand All @@ -726,6 +725,9 @@ async def login(

data += chan_info_packet

if c.auto_join:
data += app.packets.channel_join(c.name)

for o in app.state.sessions.players:
if app.usecases.channels.can_read(c, o.priv):
o.enqueue(chan_info_packet)
Expand Down

1 comment on commit b613b52

@cmyui
Copy link
Member Author

@cmyui cmyui commented on b613b52 Apr 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may be a bug here, investigate tomorrow

Please sign in to comment.