diff --git a/matrix_commands.go b/matrix_commands.go index 6860759..314f947 100644 --- a/matrix_commands.go +++ b/matrix_commands.go @@ -31,7 +31,11 @@ func registerChatCommands() { return text + Circles["red"] + "Failed to get sites!" } for _, site := range sites { - text = fmt.Sprintf("%s- %s\n", text, site.getName()) + text = fmt.Sprintf("%s%s", text, site.getName()) + if site.config.name != "" { // Only add technical name to sites with a configured name. + text += " (" + site.name + ")" + } + text += "\n" } if len(sites) == 0 { text = text + "*No sites found*"