diff --git a/crates/mind-body/src/projection/interpret.rs b/crates/mind-body/src/projection/interpret.rs index e011fd6..cf0a814 100644 --- a/crates/mind-body/src/projection/interpret.rs +++ b/crates/mind-body/src/projection/interpret.rs @@ -1334,8 +1334,8 @@ fn held_gate(answer: &Answer, packet: &Packet, opening: &[(String, Option= ECHO_OVERLAP)) || (long(&h.text) && heard_overlap(&h.text, &union) >= ECHO_OVERLAP); let mut caught: Vec = Vec::new(); if enters { - for (draft, _) in into.iter().filter(|(draft, _)| !gated.contains_key(&(room.clone(), draft.n))) { - if same_words(&draft.text, &h.text) || heard_overlap(&draft.text, &h.text) > 0.0 { + for (draft, _) in &into { + if !gated.contains_key(&(room.clone(), draft.n)) && (same_words(&draft.text, &h.text) || heard_overlap(&draft.text, &h.text) > 0.0) { gated.insert((room.clone(), draft.n), h.hold.clone()); caught.push(HeldText { text: draft.text.clone(), hold: h.hold.clone(), made: h.made }); }