mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 07:26:22 +00:00
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().
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user