From 5845c540ce1b2b5e786282ee0de0c94c09c7ae18 Mon Sep 17 00:00:00 2001 From: Aaron Weiss Date: Sun, 28 Jan 2018 04:41:04 +0100 Subject: [PATCH 1/2] Fixed code in README after name changes. --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 77cf774..3747810 100644 --- a/README.md +++ b/README.md @@ -34,13 +34,13 @@ use irc::client::prelude::*; fn main() { let cfg = Config { nickname: Some(format!("irc-rs")), - server: Some(format!("irc.example.com")), + client: Some(format!("irc.example.com")), channels: Some(vec![format!("#test")]), .. Default::default() }; - let server = IrcServer::from_config(cfg).unwrap(); - server.identify().unwrap(); - server.for_each_incoming(|message| { + let client = IrcClient::from_config(cfg).unwrap(); + client.identify().unwrap(); + client.for_each_incoming(|message| { // Do message processing. }).unwrap() } @@ -61,9 +61,9 @@ extern crate irc; use irc::client::prelude::*; fn main() { - let server = IrcServer::new("config.toml").unwrap(); - server.identify().unwrap(); - server.for_each_incoming(|message| { + let client = IrcClient::new("config.toml").unwrap(); + client.identify().unwrap(); + client.for_each_incoming(|message| { // Do message processing. }).unwrap() } From 3348417c7a9c83969bdd20eb1262b66e4abb0cd1 Mon Sep 17 00:00:00 2001 From: Aaron Weiss Date: Sun, 28 Jan 2018 04:55:06 +0100 Subject: [PATCH 2/2] Bumped version number to 0.13.1. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ffb867d..82c0044 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "irc" -version = "0.13.0" +version = "0.13.1" description = "A simple, thread-safe, and async-friendly library for IRC clients." authors = ["Aaron Weiss "] license = "MPL-2.0"