From b5b035faa75f79c63bb49fc71d907813216c214b Mon Sep 17 00:00:00 2001 From: Aaron Weiss Date: Tue, 10 Jul 2018 04:15:08 +0200 Subject: [PATCH] Switched all the examples to use #rust-spam on irc.mozilla.org. --- examples/multiserver.rs | 8 ++++---- examples/reactor.rs | 4 ++-- examples/reconnector.rs | 8 ++++---- examples/simple.rs | 4 ++-- examples/simple_ssl.rs | 4 ++-- examples/tooter.rs | 6 +++--- examples/tweeter.rs | 6 +++--- 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/examples/multiserver.rs b/examples/multiserver.rs index c88311e..2e3bc27 100644 --- a/examples/multiserver.rs +++ b/examples/multiserver.rs @@ -7,15 +7,15 @@ use irc::client::prelude::*; fn main() { let cfg1 = Config { nickname: Some("pickles".to_owned()), - server: Some("irc.fyrechat.net".to_owned()), - channels: Some(vec!["#irc-crate".to_owned()]), + server: Some("irc.mozilla.org".to_owned()), + channels: Some(vec!["#rust-spam".to_owned()]), ..Default::default() }; let cfg2 = Config { nickname: Some("bananas".to_owned()), - server: Some("irc.fyrechat.net".to_owned()), - channels: Some(vec!["#irc-crate".to_owned()]), + server: Some("irc.mozilla.org".to_owned()), + channels: Some(vec!["#rust-spam".to_owned()]), ..Default::default() }; diff --git a/examples/reactor.rs b/examples/reactor.rs index 66dea6b..1a0d2b0 100644 --- a/examples/reactor.rs +++ b/examples/reactor.rs @@ -8,8 +8,8 @@ fn main() { let config = Config { nickname: Some("pickles".to_owned()), alt_nicks: Some(vec!["bananas".to_owned(), "apples".to_owned()]), - server: Some("irc.fyrechat.net".to_owned()), - channels: Some(vec!["#irc-crate".to_owned()]), + server: Some("irc.mozilla.org".to_owned()), + channels: Some(vec!["#rust-spam".to_owned()]), ..Default::default() }; diff --git a/examples/reconnector.rs b/examples/reconnector.rs index f879f48..da6fc8b 100644 --- a/examples/reconnector.rs +++ b/examples/reconnector.rs @@ -7,15 +7,15 @@ use irc::client::prelude::*; fn main() { let cfg1 = Config { nickname: Some("pickles".to_owned()), - server: Some("irc.fyrechat.net".to_owned()), - channels: Some(vec!["#irc-crate".to_owned()]), + server: Some("irc.mozilla.org".to_owned()), + channels: Some(vec!["#rust-spam".to_owned()]), ..Default::default() }; let cfg2 = Config { nickname: Some("bananas".to_owned()), - server: Some("irc.fyrechat.net".to_owned()), - channels: Some(vec!["#irc-crate".to_owned()]), + server: Some("irc.mozilla.org".to_owned()), + channels: Some(vec!["#rust-spam".to_owned()]), ..Default::default() }; diff --git a/examples/simple.rs b/examples/simple.rs index f6a621b..83bb777 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -7,8 +7,8 @@ fn main() { let config = Config { nickname: Some("pickles".to_owned()), alt_nicks: Some(vec!["bananas".to_owned(), "apples".to_owned()]), - server: Some("irc.fyrechat.net".to_owned()), - channels: Some(vec!["#irc-crate".to_owned()]), + server: Some("irc.mozilla.org".to_owned()), + channels: Some(vec!["#rust-spam".to_owned()]), ..Default::default() }; diff --git a/examples/simple_ssl.rs b/examples/simple_ssl.rs index 86ce6f3..201935a 100644 --- a/examples/simple_ssl.rs +++ b/examples/simple_ssl.rs @@ -6,8 +6,8 @@ use irc::client::prelude::*; fn main() { let config = Config { nickname: Some("pickles".to_owned()), - server: Some("irc.fyrechat.net".to_owned()), - channels: Some(vec!["#irc-crate".to_owned()]), + server: Some("irc.mozilla.org".to_owned()), + channels: Some(vec!["#rust-spam".to_owned()]), use_ssl: Some(true), ..Default::default() }; diff --git a/examples/tooter.rs b/examples/tooter.rs index 42a2ad8..409765c 100644 --- a/examples/tooter.rs +++ b/examples/tooter.rs @@ -10,8 +10,8 @@ use irc::error::IrcError; fn main() { let config = Config { nickname: Some("mastodon".to_owned()), - server: Some("irc.fyrechat.net".to_owned()), - channels: Some(vec!["#irc-crate".to_owned()]), + server: Some("irc.mozilla.org".to_owned()), + channels: Some(vec!["#rust-spam".to_owned()]), ..Default::default() }; @@ -43,7 +43,7 @@ fn main() { // And then spawn a new future that performs the given action each time it fires. reactor.register_future(send_interval.map_err(IrcError::Timer).for_each(move |()| { // Anything in here will happen every 10 seconds! - send_client.send_privmsg("#irc-crate", "TOOT TOOT") + send_client.send_privmsg("#rust-spam", "AWOOOOOOOOOO") })); // Then, on the main thread, we finally run the reactor which blocks the program indefinitely. diff --git a/examples/tweeter.rs b/examples/tweeter.rs index 830ca0d..824fab3 100644 --- a/examples/tweeter.rs +++ b/examples/tweeter.rs @@ -9,8 +9,8 @@ use irc::client::prelude::*; fn main() { let config = Config { nickname: Some("pickles".to_owned()), - server: Some("irc.fyrechat.net".to_owned()), - channels: Some(vec!["#irc-crate".to_owned()]), + server: Some("irc.mozilla.org".to_owned()), + channels: Some(vec!["#rust-spam".to_owned()]), ..Default::default() }; let client = IrcClient::from_config(config).unwrap(); @@ -21,7 +21,7 @@ fn main() { client2.stream().map(|m| print!("{}", m)).wait().count(); }); loop { - client.send_privmsg("#irc-crate", "TWEET TWEET").unwrap(); + client.send_privmsg("#rust-spam", "TWEET TWEET").unwrap(); thread::sleep(Duration::new(10, 0)); } }