support binding to a resource

This commit is contained in:
lumi 2017-02-24 23:53:54 +01:00
commit 4927ecaa0d
2 changed files with 14 additions and 6 deletions

View file

@ -18,6 +18,7 @@ fn main() {
client.connect(&mut Plain::new(name, pass)).unwrap();
// Replace with this line if you want SCRAM-SHA-1 authentication:
// client.connect(&mut Scram::<Sha1>::new(name, pass).unwrap()).unwrap();
client.bind().unwrap();
client.plugin::<PresencePlugin>().set_presence(Show::Available, None).unwrap();
loop {
let event = client.next_event().unwrap();