diff options
author | James Booth <boothj5@gmail.com> | 2013-05-19 17:00:27 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-05-19 17:00:27 +0100 |
commit | e1c9cbc9554dcb0d52c66410ff9638fdb6d5291e (patch) | |
tree | 079cc72d3468d026120fbb7e73b32151b6619a31 /src/ui | |
parent | db6e7f569751fc2dccff5ce31ad0bd4b3814376a (diff) | |
download | profani-tty-e1c9cbc9554dcb0d52c66410ff9638fdb6d5291e.tar.gz |
Show handle rather than jid in /who output if exists
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/window.c | 5 |
1 files 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); |