mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Show handle rather than jid in /who output if exists
This commit is contained in:
parent
db6e7f5697
commit
e1c9cbc955
@ -124,10 +124,11 @@ win_show_contact(ProfWin *window, PContact contact)
|
|||||||
|
|
||||||
win_print_time(window, '-');
|
win_print_time(window, '-');
|
||||||
win_presence_colour_on(window, presence);
|
win_presence_colour_on(window, presence);
|
||||||
wprintw(window->win, "%s", barejid);
|
|
||||||
|
|
||||||
if (name != NULL) {
|
if (name != NULL) {
|
||||||
wprintw(window->win, " (%s)", name);
|
wprintw(window->win, "%s", name);
|
||||||
|
} else {
|
||||||
|
wprintw(window->win, "%s", barejid);
|
||||||
}
|
}
|
||||||
|
|
||||||
wprintw(window->win, " is %s", presence);
|
wprintw(window->win, " is %s", presence);
|
||||||
|
Loading…
Reference in New Issue
Block a user