about summary refs log tree commit diff stats
path: root/src/ui/console.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-04-21 01:13:35 +0100
committerJames Booth <boothj5@gmail.com>2013-04-21 01:13:35 +0100
commit688eea083bd25af39d11b6f993b0d1bf02535959 (patch)
treeeab1a6bb8cb7d2ae4ff481f8bec39ce7a7aefd20 /src/ui/console.c
parentd7cc54db6302155fe7e1670b510496f8db40c9ac (diff)
downloadprofani-tty-688eea083bd25af39d11b6f993b0d1bf02535959.tar.gz
Moved cons_show_status() to console module
Diffstat (limited to 'src/ui/console.c')
-rw-r--r--src/ui/console.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index 41b189c2..727fb606 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -584,6 +584,18 @@ cons_show_disco_items(GSList *items, const char * const jid)
     }
 }
 
+void
+cons_show_status(const char * const contact)
+{
+    PContact pcontact = contact_list_get_contact(contact);
+
+    if (pcontact != NULL) {
+        window_show_contact(console, pcontact);
+    } else {
+        cons_show("No such contact \"%s\" in roster.", contact);
+    }
+}
+
 static void
 _cons_splash_logo(void)
 {