Merge branch 'master' into async
This commit is contained in:
commit
2821b60e83
4 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue