Skip to content

check user in a match before allowing match creation#745

Open
arily wants to merge 4 commits intoosuAkatsuki:masterfrom
ppy-sb:fix-mp-room-creation
Open

check user in a match before allowing match creation#745
arily wants to merge 4 commits intoosuAkatsuki:masterfrom
ppy-sb:fix-mp-room-creation

Conversation

@arily
Copy link
Contributor

@arily arily commented Feb 24, 2026

Describe your changes

check user in a match before allowing match creation

Related Issues / Projects

image We occasionally have 2 rooms with same host. for some reason the leave match packet wasn't received or sent.

Checklist

  • [] I've manually tested my code
    (still collecting data in our prod)

@arily
Copy link
Contributor Author

arily commented Mar 17, 2026

  • updated code to kick user from match inside handler
  • add special handling allow user rejoin joined match

pls check

@arily arily force-pushed the fix-mp-room-creation branch from 828edcc to 4330f0a Compare March 17, 2026 08:52
@arily arily requested a review from cmyui March 17, 2026 08:52
Copy link
Member

@NiceAesth NiceAesth left a comment

Choose a reason for hiding this comment

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

looks sorta similar to what i ended up doing for bancho-service-rs

fine by me but CI will need to be addressed

@NiceAesth
Copy link
Member

i was going to fix ci for you but allow edits from maintainers is disabled

please run pre-commit run --all-files and commit the changes

arily and others added 4 commits March 20, 2026 09:35
Co-authored-by: Josh Smith <cmyuiosu@gmail.com>
player now have 2 ways of fixing mp room:
  - by creating another match
  - by rejoining its existing match

player who created more than 2 rooms at same time is untested, but due
to this fix it shouldn't be possible anymore.
@arily arily force-pushed the fix-mp-room-creation branch from 71ff92b to 020b2c3 Compare March 20, 2026 01:35
@arily
Copy link
Contributor Author

arily commented Mar 20, 2026

@NiceAesth done

  • ran CI as required
  • rebased to latest main branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants