working on tuning

master
lza_menace 2 years ago
parent 4dd30a4d39
commit 98da1fa23d

@ -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(())
}