diff options
author | Michael Vetter <jubalh@iodoru.org> | 2021-06-30 11:30:02 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2021-06-30 11:30:02 +0200 |
commit | 3d5e59895b05ed611860aa55569ecfa893b73d64 (patch) | |
tree | bb3bb408aa10edb2bf1d5970f36d907b35a2f28d | |
parent | c847a8d6629e4a6ca326b0f3def3fe2aba0ed467 (diff) | |
download | profani-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().
-rw-r--r-- | src/ui/console.c | 5 |
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 |