From 98da1fa23d56c440a9c30d99cdbdb253bf7a7003 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Wed, 26 Oct 2022 18:05:03 -0700 Subject: [PATCH] working on tuning --- src/irc.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/irc.rs b/src/irc.rs index 50729a9..c83f270 100644 --- a/src/irc.rs +++ b/src/irc.rs @@ -203,10 +203,8 @@ impl Client { } pub fn send_tune(&self) -> std::io::Result<()> { - let mut stream = connect(self.nick.to_owned())?; - thread::spawn(move || { - let _ = stream.write(b"PRIVMSG #wownero-music !tune\r\n"); - }); + let stream = connect(self.nick.to_owned())?; + thread::spawn(move || send_cmd(&stream, "PRIVMSG", "#wownero-music !tune".to_owned())); Ok(()) }