diff --git a/src/bot.rs b/src/bot.rs index a0f3b45..b3d8531 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -73,6 +73,11 @@ async fn handle_multiple_results( respond_to: &str, room: &Joined, ) { + let respond_to = format!( + "{}", + respond_to, respond_to + ); + let errors: Vec<(&str, &ExecutionError)> = results .into_iter() .filter_map(|(cmd, result)| match result { diff --git a/src/commands.rs b/src/commands.rs index daa5663..9e4b7a1 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -76,11 +76,13 @@ pub trait ResponseExtractor { impl ResponseExtractor for ExecutionResult { /// Error message in bolded HTML. fn message_html(&self, username: &str) -> String { - //TODO use user display name too + // TODO use user display name too (element seems to render this + // without display name) let username = format!( "{}", username, username ); + match self { Ok(resp) => format!("
{}
{}
", username, resp.html).replace("\n", "{}
{}
", username, e.html()).replace("\n", "