more weapons

This commit is contained in:
Robin Appelman 2026-11-12 22:42:00 +01:00
commit 371fe4079d
Signed by: robin
SSH key fingerprint: SHA256:kifqgrqnut7q1YUIrI0AdMNC23qiKAS/T9uGFmIYvbE
3 changed files with 347 additions and 1 deletions

View file

@ -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 {