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