diff --git a/src/commands.rs b/src/commands.rs index c2aa26a..71a275f 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -76,6 +76,11 @@ pub trait ResponseExtractor { impl ResponseExtractor for CommandResult { /// Error message in bolded HTML. fn message_html(&self, username: &str) -> String { + //TODO use user display name too + let username = format!( + "{}", + username, username + ); match self { Ok(resp) => format!("
{}
{}
", username, resp.html).replace("\n", "{}
{}
", username, e.html()).replace("\n", "