about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-06-30 11:30:02 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-06-30 11:30:02 +0200
commit3d5e59895b05ed611860aa55569ecfa893b73d64 (patch)
treebb3bb408aa10edb2bf1d5970f36d907b35a2f28d /src/ui
parentc847a8d6629e4a6ca326b0f3def3fe2aba0ed467 (diff)
downloadprofani-tty-3d5e59895b05ed611860aa55569ecfa893b73d64.tar.gz
Adjust contact addresses output to the rest of disco info
Format the output of cons_show_disco_contact_information() so that it matches cons_show_disco_info().
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/console.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index 59e24891..a99769b1 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -839,12 +839,13 @@ cons_show_disco_items(GSList* items, const char* const jid)
 
 static void _cons_print_contact_information_item(gpointer data, gpointer user_data)
 {
-    cons_show("%s: %s", (char*)user_data, (char*)data);
+    cons_show("    %s", (char*)data);
 }
 
 static void _cons_print_contact_information_hashlist_item(gpointer key, gpointer value, gpointer userdata)
 {
-    g_slist_foreach((GSList*)value, _cons_print_contact_information_item, key);
+    cons_show("  %s:", (char*)key);
+    g_slist_foreach((GSList*)value, _cons_print_contact_information_item, NULL);
 }
 
 void