1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Show handle rather than jid in /who output if exists

This commit is contained in:
James Booth 2013-05-19 17:00:27 +01:00
parent db6e7f5697
commit e1c9cbc955

View File

@ -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);