From 406dfdea987e56ef9557be1fff62a28095f48f77 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 27 May 2017 16:25:31 +0100 Subject: [PATCH] initialise the StanzaPlugin in the client example --- examples/client.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/client.rs b/examples/client.rs index de8fa51..290e69a 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());