summaryrefslogtreecommitdiffstats
path: root/examples/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/client.rs')
-rw-r--r--examples/client.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/examples/client.rs b/examples/client.rs
index 0794329..c5f31a7 100644
--- a/examples/client.rs
+++ b/examples/client.rs
@@ -1,7 +1,5 @@
extern crate irc;
-use irc::constants::Pong;
-
use std::io;
pub struct ExampleClient;
@@ -11,14 +9,6 @@ impl irc::ClientCallbacks for ExampleClient {
print!("{}", m.to_protocol_string());
Ok(())
}
-
- fn on_ping (&mut self, client: &mut irc::Client, _from: Option<&str>, server1: &str, server2: Option<&str>) -> io::IoResult<()> {
- let params = match server2 {
- Some(server2) => vec![server1.to_string(), server2.to_string()],
- None => vec![server1.to_string()],
- };
- client.write(irc::Message::new(None, Pong, params))
- }
}
fn main () {