aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTill Hoeppner2015-04-20 20:54:13 +0200
committerTill Hoeppner2015-04-20 20:57:04 +0200
commitcabbd084f89908e91b81300a776cbeb5034396b8 (patch)
treec29bb2aca28b2827133d54bdb64b131da21e2a4a /examples
parent3cee55e3bfd1c853e1ff4fa71a690f1ad1d6e37e (diff)
downloadirsc-cabbd084f89908e91b81300a776cbeb5034396b8.tar.gz
irsc-cabbd084f89908e91b81300a776cbeb5034396b8.tar.xz
irsc-cabbd084f89908e91b81300a776cbeb5034396b8.zip
Something inbetween working and broken
Diffstat (limited to 'examples')
-rw-r--r--examples/01.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/01.rs b/examples/01.rs
index 6b95be2..eb662ca 100644
--- a/examples/01.rs
+++ b/examples/01.rs
@@ -1,7 +1,7 @@
#![feature(plugin)]
#![plugin(regex_macros)]
-extern crate irsc;
+/*extern crate irsc;
use std::borrow::ToOwned;
@@ -33,14 +33,14 @@ fn callback(server: &mut Server, msg: &Message) {
_ => ()
}*/
}
-
+*/
fn main() {
- let mut s = Server::new();
+ /*let mut s = Server::new();
s.connect("irc.mozilla.org".to_owned(), 6667).unwrap();
s.nick(NAME).unwrap();
s.user(NAME, "*", "*", DESC).unwrap();
s.join("#botzoo").unwrap();
// Dedicate this thread to listening and event processing
- s.listen(&[callback]).unwrap();
+ s.listen(&[callback]).unwrap();*/
}