diff --git a/connection_handler.py b/connection_handler.py index 4f6db42..b03200d 100644 --- a/connection_handler.py +++ b/connection_handler.py @@ -350,7 +350,7 @@ class ConnectionHandler(object): if valid_name(opponent): if len(self.user_manager.get_user(opponent)) > 0: - if len(self.match_manager.get_matches_for_user(conn.user_name)) >= 5: + if len(self.match_manager.get_matches_for_user(opponent)) >= 5: await conn.websocket.send( json.dumps( {