From 162d5a42d02e89c89fbd70ab37cbbb12b2317604 Mon Sep 17 00:00:00 2001 From: Yash Karandikar Date: Sun, 7 Nov 2021 21:10:19 -0600 Subject: [PATCH] Use env instead of hardcoding version --- src/lib.rs | 4 ++-- src/main.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index bceefbb..9ff561f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -114,7 +114,7 @@ pub enum Command { /// Message String, ), - /// Leaves the IRC and shuts down the TCP stream + /// Leaves the IRC /// ```no_run /// # use circe::* /// # let mut client = Client::new(Config::from_toml("config.toml")?)?; @@ -448,7 +448,7 @@ impl Client { self.write_command(Command::QUIT(message.to_string()))?; } else { self.write_command(Command::QUIT( - "circe 0.1.2 (https://crates.io/crates/circe)".to_string(), + format!("circe {} (https://crates.io/crates/circe)", env!("CARGO_PKG_VERSION")), ))?; } self.stream.shutdown(std::net::Shutdown::Both)?; diff --git a/src/main.rs b/src/main.rs index fbcdcce..b9195d4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,8 +12,8 @@ macro_rules! loop_n { fn main() -> Result<(), std::io::Error> { //let config = Config::from_toml("config.toml")?; let config = Config::new( - vec!["#main", "#circe"], - "192.168.178.100", + vec!["#main", "#no-normies"], + "192.168.1.28", Some("+B"), Some("circe"), 6667,