Add fetch-channel command

This commit is contained in:
Tobias Reisinger 2023-11-17 17:32:15 +01:00
parent 970c1ee2c2
commit 244a7073fe
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
9 changed files with 183 additions and 54 deletions

View file

@ -57,8 +57,7 @@ fn read_response(connection: &mut Telnet, skip_ok: bool, mut buffer: String) ->
if skip_ok {
read_response(connection, skip_ok, buffer)
} else {
// empty Ok response
Ok(Response::Data(Vec::new()))
Ok(Response::Ok)
}
} else {
Err(format!("Received error response from Teamspeak: {} ({})", err.msg, err.id))