diff --git a/src/bin/kawari-lobby.rs b/src/bin/kawari-lobby.rs index 2e839a2..a7780f1 100644 --- a/src/bin/kawari-lobby.rs +++ b/src/bin/kawari-lobby.rs @@ -298,10 +298,14 @@ async fn main() { connection.send_error(*sequence, 2002, 13006).await; } } - ClientLobbyIpcData::ServiceLogin { sequence, .. } => { - // TODO: support selecting a service account - connection.selected_service_account = - Some(connection.service_accounts[0].id); + ClientLobbyIpcData::ServiceLogin { + sequence, + account_index, + .. + } => { + connection.selected_service_account = Some( + connection.service_accounts[*account_index as usize].id, + ); connection.send_lobby_info(*sequence).await } ClientLobbyIpcData::CharaMake(character_action) => {