mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05: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:
parent
c847a8d662
commit
3d5e59895b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user