about summary refs log tree commit diff stats
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/command.c b/command.c
index 41792315..dd0e8a79 100644
--- a/command.c
+++ b/command.c
@@ -149,12 +149,7 @@ static int _cmd_who(void)
 static int _cmd_pres(void)
 {
     struct contact_list *list = get_contact_list();
-
-    int i;
-    for (i = 0; i < list->size; i++) {
-        char *contact = list->contacts[i];
-        cons_show(contact);
-    }
+    cons_show_online_contacts(list);
 
     return TRUE;
 }