mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 04:40:47 +01:00
updates
This commit is contained in:
parent
2a02abf982
commit
b03d328ab9
19 changed files with 1081 additions and 978 deletions
|
|
@ -49,7 +49,8 @@ impl FromStr for Location {
|
|||
#[derive(Debug, Default, Serialize, PartialEq)]
|
||||
pub struct LobbyLeader {
|
||||
name: String,
|
||||
steam_id: SteamID,
|
||||
#[serde(with = "super::serde_steamid::opt")]
|
||||
steam_id: Option<SteamID>,
|
||||
}
|
||||
|
||||
impl FromStr for LobbyLeader {
|
||||
|
|
@ -60,7 +61,7 @@ impl FromStr for LobbyLeader {
|
|||
if let Ok(steam_id) = steam_id.trim_end_matches(')').parse::<u64>() {
|
||||
Ok(LobbyLeader {
|
||||
name: name.into(),
|
||||
steam_id: steam_id.into(),
|
||||
steam_id: SteamID::from_steam64(steam_id).ok(),
|
||||
})
|
||||
} else {
|
||||
Err(LobbySettingsError::MalformedLeader(s.into()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue