def game_init_done_callback(): if game.id is None: conn.send(GameError.init_failed(), trans) else: if start_now: sender.enterGame(game) if username != "GNUGo": user.enterGame(game) room = sender.rooms.get(roomname) room.add_game(conn, white, black, size, game.id) else: user.callIntoGame(sender, game.id, call_into_callback)