summaryrefslogtreecommitdiffstats
path: root/examples/client.rs
blob: db3b244927a5cb1a83bd60e4c771acc486a701ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate irc;

pub struct ExampleClient;

impl irc::ClientCallbacks for ExampleClient {
}

fn main () {
    let mut builder = irc::ClientBuilder::new("doytest", "chat.freenode.net");
    builder.set_debug(true);
    let client = builder.connect();
    client.run_loop_with_callbacks(ExampleClient);
}