Skip to content

Commit

Permalink
Typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Jan 3, 2025
1 parent 84c89da commit 70d3634
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/wsr.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def init_ws(app_state, ws, user, game: game.Game):
if p.username != user.username:
await handle_is_user_present(ws, app_state.users, p.username, game)
await handle_game_user_connected(app_state, ws, user, game)
await hande_board(ws, user, game)
await handle_board(ws, user, game)


async def process_message(app_state, user, ws, data, game):
Expand All @@ -81,7 +81,7 @@ async def process_message(app_state, user, ws, data, game):
elif data["type"] == "ready":
await handle_ready(ws, app_state.users, user, data, game)
elif data["type"] == "board":
await hande_board(ws, user, game)
await handle_board(ws, user, game)
elif data["type"] == "setup":
await handle_setup(ws, app_state.users, user, data, game)
elif data["type"] == "analysis":
Expand Down Expand Up @@ -214,7 +214,7 @@ async def handle_ready(ws, users, user, data, game):
await round_broadcast(game, game.spectator_list, full=True)


async def hande_board(ws, user, game):
async def handle_board(ws, user, game):
if game.variant == "janggi":
# print("JANGGI", ws, game.bsetup, game.wsetup, game.status)
if (game.bsetup or game.wsetup) and game.status <= STARTED:
Expand Down

0 comments on commit 70d3634

Please sign in to comment.