mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 03:56:22 +00:00
Show only nick or jid in /wins output
This commit is contained in:
@@ -156,6 +156,16 @@ p_contact_name(const PContact contact)
|
||||
return contact->name;
|
||||
}
|
||||
|
||||
const char *
|
||||
p_contact_name_or_jid(const PContact contact)
|
||||
{
|
||||
if (contact->name != NULL) {
|
||||
return contact->name;
|
||||
} else {
|
||||
return contact->barejid;
|
||||
}
|
||||
}
|
||||
|
||||
static Resource *
|
||||
_highest_presence(Resource *first, Resource *second)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user