mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 04:40:47 +01:00
sorta handle malformed players
This commit is contained in:
parent
a90cb67dc2
commit
2d8ede8027
2 changed files with 42 additions and 24 deletions
|
|
@ -99,7 +99,7 @@ pub fn split_player_subject(input: &str) -> Result<(&str, &str, &str, &str)> {
|
|||
(parts.next(), parts.next(), parts.next(), parts.next())
|
||||
{
|
||||
if steam_id.is_empty() || user_id.is_empty() || team.is_empty() {
|
||||
(name, "0", "", "")
|
||||
return Err(Error::Malformed);
|
||||
} else {
|
||||
(
|
||||
name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue