Add event return type
This commit is contained in:
parent
6a0e2fd7d1
commit
2c0a8ab616
7 changed files with 166 additions and 15 deletions
|
|
@ -106,4 +106,5 @@ pub fn clientupdate(connection: &mut Telnet, parameters: ParameterList) -> Resul
|
|||
|
||||
pub fn sendtextmessage(connection: &mut Telnet, target: SendTextMessageTarget, msg: String) -> Result<Response, String> {
|
||||
let msg = String::from(Parameter::new("msg", &msg));
|
||||
send_command(connection, &format!("sendtextmessage {} {}", msg, String::from(target)), false) }
|
||||
send_command(connection, &format!("sendtextmessage {} {}", msg, String::from(target)), false)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue