From e1c9cbc9554dcb0d52c66410ff9638fdb6d5291e Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 19 May 2013 17:00:27 +0100 Subject: [PATCH] Show handle rather than jid in /who output if exists --- src/ui/window.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/window.c b/src/ui/window.c index 5ef23b84..e2e03340 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -124,10 +124,11 @@ win_show_contact(ProfWin *window, PContact contact) win_print_time(window, '-'); win_presence_colour_on(window, presence); - wprintw(window->win, "%s", barejid); 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);