mirror of
https://codeberg.org/june64/mrvc.git
synced 2026-01-10 16:06:33 +01:00
get and print the aliases for each room
This is especially useful when using the recursive option as it allows for easier identification of each child room.
This commit is contained in:
parent
6309b94498
commit
29e99b708c
2 changed files with 36 additions and 4 deletions
11
main.go
11
main.go
|
|
@ -78,9 +78,16 @@ func main() {
|
|||
for roomID, roomInfo := range roomInfoTree {
|
||||
fmt.Println("Room:")
|
||||
fmt.Printf(" %s -> %d\n", roomID, roomInfo.MemberCount)
|
||||
aliases := roomInfo.GivenAliases
|
||||
if len(aliases) > 0 {
|
||||
givenAliases := roomInfo.GivenAliases
|
||||
if len(givenAliases) > 0 {
|
||||
fmt.Println("Given Aliases:")
|
||||
for _, alias := range givenAliases {
|
||||
fmt.Printf(" %s\n", alias)
|
||||
}
|
||||
}
|
||||
aliases := roomInfo.Aliases
|
||||
if len(aliases) > 0 {
|
||||
fmt.Println("Aliases:")
|
||||
for _, alias := range aliases {
|
||||
fmt.Printf(" %s\n", alias)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue