From 2dea995c5d9df2d0b74f9253b7d6647360ff2e8b Mon Sep 17 00:00:00 2001 From: David Westgate Date: Sun, 3 Dec 2023 15:35:42 -0800 Subject: [PATCH] fix client bug on msg --- src/client.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/client.rs b/src/client.rs index f29a5e8..450fa2d 100644 --- a/src/client.rs +++ b/src/client.rs @@ -160,7 +160,6 @@ pub fn start() { } let host: String = input!("Enter the server host: "); - // let host: &str = "fab04.cecs.pdx.edu"; //hard coded host for testing if let Ok(mut stream) = TcpStream::connect(host.to_owned() + ":6667") { println!("Connected to {}. /help to see available commands", host); @@ -232,9 +231,7 @@ pub fn start() { eprintln!("Usage: /msg [room] [message]"); } }, - _ => { - eprintln!("Malformed command. Try /help"); - } + _ => one_param_op(codes::MESSAGE, &mut stream, &inp), }, _ => match inp.as_str() {