Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix checking connection is a player #539

Merged
merged 1 commit into from
Aug 12, 2019
Merged

Conversation

samuelallan72
Copy link

Removal of MultiKeyDict broke everything. This should help unbreak
things. Builds on @NotAFile's player_only decorator and discussion on
matrix.

Note that I've probably missed some cases - it's very pervasive.

Also need to check in each case that is updated that it actually makes
sense. In same cases we want to check the keys, not the values, because
we're looking for player_ids rather than connection objects.

Copy link
Member

@NotAFile NotAFile left a comment

Choose a reason for hiding this comment

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

reminded me of #299

Since checking if a connection is a real player is done so often, we should probably implement some kind of utility function for it.

@feikname feikname added the PR: solve-bug This PR aims to solve a bug label Aug 11, 2019
@samuelallan72 samuelallan72 merged commit 7f99675 into master Aug 12, 2019
@samuelallan72 samuelallan72 deleted the fix-connection-in branch August 12, 2019 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: solve-bug This PR aims to solve a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants