about summary refs log tree commit diff stats
path: root/src/windows.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-01-21 23:48:57 +0000
committerJames Booth <boothj5@gmail.com>2013-01-21 23:48:57 +0000
commit134da4d001d1e6fa65b9affb36a85ef7881e97f4 (patch)
treefa37ac73f70bb4b759a522fe5210655e5b2bf0cc /src/windows.c
parentdd6dfd94080d57860e5450a896b5101d6764875a (diff)
downloadprofani-tty-134da4d001d1e6fa65b9affb36a85ef7881e97f4.tar.gz
Always show output in console for /info command
Diffstat (limited to 'src/windows.c')
-rw-r--r--src/windows.c49
1 files changed, 5 insertions, 44 deletions
diff --git a/src/windows.c b/src/windows.c
index f281be24..74507e06 100644
--- a/src/windows.c
+++ b/src/windows.c
@@ -1159,53 +1159,14 @@ cons_show_wins(void)
 }
 
 void
-win_room_show_info(const char * const contact)
+cons_show_info(PContact pcontact)
 {
-    PContact pcontact = muc_get_participant(win_current_get_recipient(), contact);
-
-    if (pcontact != NULL) {
-        _win_show_info(current->win, pcontact);
-    } else {
-        win_current_show("No such participant \"%s\" in room.", contact);
-    }
-
-}
-
-void
-cons_show_info(const char * const contact)
-{
-    PContact pcontact = contact_list_get_contact(contact);
-
-    if (pcontact != NULL) {
-        _win_show_info(console->win, pcontact);
-    } else {
-        cons_show("No such contact \"%s\" in roster.", contact);
-    }
-}
+    _win_show_info(console->win, pcontact);
 
-void
-win_show_info(void)
-{
-    PContact pcontact = contact_list_get_contact(win_current_get_recipient());
-
-    if (pcontact != NULL) {
-        _win_show_info(current->win, pcontact);
-    } else {
-        win_current_show("No such contact \"%s\" in roster.", win_current_get_recipient());
-    }
-}
-
-void
-win_private_show_info(void)
-{
-    Jid *jid = jid_create(win_current_get_recipient());
-
-    PContact pcontact = muc_get_participant(jid->barejid, jid->resourcepart);
-
-    if (pcontact != NULL) {
-        _win_show_info(current->win, pcontact);
+    if (current_index == 0) {
+        dirty = TRUE;
     } else {
-        win_current_show("No such participant \"%s\" in room.", jid->resourcepart);
+        status_bar_new(0);
     }
 }