mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 04:40:47 +01:00
more weapons
This commit is contained in:
parent
5d1729110b
commit
371fe4079d
3 changed files with 347 additions and 1 deletions
|
|
@ -70,6 +70,11 @@ impl Kill {
|
|||
classes: &AHashMap<SubjectId, Class>,
|
||||
) -> Option<Self> {
|
||||
let victim = event.target.id().ok()?;
|
||||
// mallformed log line
|
||||
if event.weapon.contains(' ') || event.weapon.chars().any(|c| !c.is_ascii_lowercase()) {
|
||||
return None;
|
||||
}
|
||||
|
||||
Some(Kill {
|
||||
time,
|
||||
killer: Participant {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue