Add message to ts-control

This commit is contained in:
Tobias Reisinger 2023-11-26 22:40:41 +01:00
parent fa959136be
commit a9fd240bd3
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 32 additions and 16 deletions

View file

@ -109,7 +109,7 @@ impl MessageArgs {
Ok(SendTextMessageTarget::Server)
} else if let Some(client) = &self.client {
if let Some(client) = wrappers::find_client(connection, client, self.strict_client)? {
return Ok(SendTextMessageTarget::Client(client.cid));
return Ok(SendTextMessageTarget::Client(client.clid));
}
return Err("Could not find client.".to_string());
} else {