mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Fix /disco info contact address header
Only display server contact information heading when we have actual addresses.
This commit is contained in:
parent
a46c4443e3
commit
dc79c514be
@ -851,11 +851,13 @@ static void _cons_print_contact_information_hashlist_item(gpointer key, gpointer
|
|||||||
void
|
void
|
||||||
cons_show_disco_contact_information(GHashTable* addresses)
|
cons_show_disco_contact_information(GHashTable* addresses)
|
||||||
{
|
{
|
||||||
|
if (addresses && g_hash_table_size(addresses) > 0) {
|
||||||
cons_show("");
|
cons_show("");
|
||||||
cons_show("Server contact information:");
|
cons_show("Server contact information:");
|
||||||
|
|
||||||
g_hash_table_foreach(addresses, _cons_print_contact_information_hashlist_item, NULL);
|
g_hash_table_foreach(addresses, _cons_print_contact_information_hashlist_item, NULL);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_show_status(const char* const barejid)
|
cons_show_status(const char* const barejid)
|
||||||
|
Loading…
Reference in New Issue
Block a user