diff --git a/src/plugins/ping.rs b/src/plugins/ping.rs index e798bf0..7c3fe77 100644 --- a/src/plugins/ping.rs +++ b/src/plugins/ping.rs @@ -49,9 +49,10 @@ impl PingPlugin { from: iq.from.unwrap(), id: iq.id.unwrap(), }); + return Propagation::Stop; } } - Propagation::Stop + Propagation::Continue } fn reply_ping(&self, ping: &PingEvent) -> Propagation { diff --git a/src/plugins/stanza.rs b/src/plugins/stanza.rs index 0924e5c..7bc6aba 100644 --- a/src/plugins/stanza.rs +++ b/src/plugins/stanza.rs @@ -38,6 +38,9 @@ impl StanzaPlugin { } else if elem.is("iq", ns::CLIENT) { let iq = Iq::try_from(elem).unwrap(); self.proxy.dispatch(iq); + } else { + // TODO: handle nonzas too. + return Propagation::Continue; } Propagation::Stop