diff --git a/examples/client.rs b/examples/client.rs index de8fa517..290e69a7 100644 --- a/examples/client.rs +++ b/examples/client.rs @@ -2,6 +2,7 @@ extern crate xmpp; use xmpp::jid::Jid; use xmpp::client::ClientBuilder; +use xmpp::plugins::stanza::StanzaPlugin; use xmpp::plugins::messaging::{MessagingPlugin, MessageEvent}; use xmpp::plugins::presence::{PresencePlugin, Show}; use xmpp::plugins::ping::{PingPlugin, PingEvent}; @@ -15,6 +16,7 @@ fn main() { .password(pass) .connect() .unwrap(); + client.register_plugin(StanzaPlugin::new()); client.register_plugin(MessagingPlugin::new()); client.register_plugin(PresencePlugin::new()); client.register_plugin(PingPlugin::new());