about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-05-19 17:00:27 +0100
committerJames Booth <boothj5@gmail.com>2013-05-19 17:00:27 +0100
commite1c9cbc9554dcb0d52c66410ff9638fdb6d5291e (patch)
tree079cc72d3468d026120fbb7e73b32151b6619a31 /src
parentdb6e7f569751fc2dccff5ce31ad0bd4b3814376a (diff)
downloadprofani-tty-e1c9cbc9554dcb0d52c66410ff9638fdb6d5291e.tar.gz
Show handle rather than jid in /who output if exists
Diffstat (limited to 'src')
-rw-r--r--src/ui/window.c5
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);