Merge branch 'master' into async

This commit is contained in:
Aaron Weiss 2017-06-19 14:47:15 -04:00
commit 2821b60e83
No known key found for this signature in database
GPG key ID: 0237035D9BF03AE2
4 changed files with 5 additions and 5 deletions

View file

@ -8,7 +8,7 @@ fn main() {
let config = Config {
nickname: Some("pickles".to_owned()),
server: Some("irc.fyrechat.net".to_owned()),
channels: Some(vec!["#vana".to_owned()]),
channels: Some(vec!["#irc-crate".to_owned()]),
..Default::default()
};
let server = IrcServer::from_config(config).unwrap();

View file

@ -8,7 +8,7 @@ fn main() {
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!["#vana".to_owned()]),
channels: Some(vec!["#irc-crate".to_owned()]),
..Default::default()
};
let server = IrcServer::from_config(config).unwrap();

View file

@ -7,7 +7,7 @@ fn main() {
let config = Config {
nickname: Some("pickles".to_owned()),
server: Some("irc.fyrechat.net".to_owned()),
channels: Some(vec!["#vana".to_owned()]),
channels: Some(vec!["#irc-crate".to_owned()]),
port: Some(6697),
use_ssl: Some(true),
..Default::default()

View file

@ -9,7 +9,7 @@ fn main() {
let config = Config {
nickname: Some("pickles".to_owned()),
server: Some("irc.fyrechat.net".to_owned()),
channels: Some(vec!["#vana".to_owned()]),
channels: Some(vec!["#irc-crate".to_owned()]),
..Default::default()
};
let server = IrcServer::from_config(config).unwrap();
@ -20,7 +20,7 @@ fn main() {
server2.iter().map(|m| print!("{}", m.unwrap())).count();
});
loop {
server.send_privmsg("#vana", "TWEET TWEET").unwrap();
server.send_privmsg("#irc-crate", "TWEET TWEET").unwrap();
sleep(Duration::new(10, 0));
}
}