From 3d5e59895b05ed611860aa55569ecfa893b73d64 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 30 Jun 2021 11:30:02 +0200 Subject: 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(). --- src/ui/console.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ui/console.c') 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 -- cgit 1.4.1-2-gfad0