From e3d282eb6b176184bd34d094d3ed34c3bf1698b6 Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 14 Nov 2012 21:18:47 +0000 Subject: [PATCH] Changed /wins output --- src/windows.c | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/src/windows.c b/src/windows.c index c8be530e..5c86a90f 100644 --- a/src/windows.c +++ b/src/windows.c @@ -241,36 +241,27 @@ win_show_wins(void) switch (_wins[i].type) { case WIN_CHAT: - wprintw(_cons_win, "[%d]", i + 1); - if (_wins[i].unread > 0) { - wprintw(_cons_win, " !! - "); - } else { - wprintw(_cons_win, " - "); - } - wprintw(_cons_win, "conversation : %s", _wins[i].from); + wprintw(_cons_win, "%d: chat %s", i + 1, _wins[i].from); PContact contact = contact_list_get_contact(_wins[i].from); if (p_contact_name(contact) != NULL) { wprintw(_cons_win, " (%s)", p_contact_name(contact)); } - wprintw(_cons_win, ", %s", p_contact_presence(contact)); + wprintw(_cons_win, " - %s", p_contact_presence(contact)); + if (_wins[i].unread > 0) { + wprintw(_cons_win, ", %d unread", _wins[i].unread); + } break; case WIN_PRIVATE: - wprintw(_cons_win, "[%d]", i + 1); + wprintw(_cons_win, "%d: private %s", i + 1, _wins[i].from); if (_wins[i].unread > 0) { - wprintw(_cons_win, " !! - "); - } else { - wprintw(_cons_win, " - "); + wprintw(_cons_win, ", %d unread", _wins[i].unread); } - wprintw(_cons_win, "private : %s", _wins[i].from); break; case WIN_MUC: - wprintw(_cons_win, "[%d]", i + 1); + wprintw(_cons_win, "%d: room %s", i + 1, _wins[i].from); if (_wins[i].unread > 0) { - wprintw(_cons_win, " !! - "); - } else { - wprintw(_cons_win, " - "); + wprintw(_cons_win, ", %d unread", _wins[i].unread); } - wprintw(_cons_win, "chat room : %s", _wins[i].from); break; default: break;