From e2ec2a98ba97da6875ab55e71e286aff3715cbfd Mon Sep 17 00:00:00 2001 From: strawberry Date: Mon, 27 Nov 2023 01:25:20 -0500 Subject: [PATCH] make rooms alias list command more nicer room IDs in conduit have a server name attached to them already outputting the server name again just makes it look incorrect also add codeblock to the internal room ID portion Signed-off-by: strawberry --- src/service/admin/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/service/admin/mod.rs b/src/service/admin/mod.rs index d8c7816f..49173ef5 100644 --- a/src/service/admin/mod.rs +++ b/src/service/admin/mod.rs @@ -944,8 +944,8 @@ impl Service { |mut output, (alias, id)| { writeln!( output, - "- #{}:{} -> {}", - alias, server_name, id + "- `#{}` -> #{}:{}", + alias, id, server_name ) .unwrap(); output @@ -957,10 +957,10 @@ impl Service { |mut output, (alias, id)| { writeln!( output, - "
  • #{}:{} -> {}
  • ", + "
  • #{} -> #{}:{}
  • ", escape_html(alias.as_ref()), - server_name, - escape_html(id.as_ref()) + escape_html(id.as_ref()), + server_name ) .unwrap(); output @@ -972,7 +972,7 @@ impl Service { RoomMessageEventContent::text_html(plain, html) } Err(err) => RoomMessageEventContent::text_plain(format!( - "Unable to list aliases: {}", + "Unable to list room aliases: {}", err )), }