mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Changed /wins output
This commit is contained in:
parent
e9e39d5520
commit
e3d282eb6b
@ -241,36 +241,27 @@ win_show_wins(void)
|
|||||||
switch (_wins[i].type)
|
switch (_wins[i].type)
|
||||||
{
|
{
|
||||||
case WIN_CHAT:
|
case WIN_CHAT:
|
||||||
wprintw(_cons_win, "[%d]", i + 1);
|
wprintw(_cons_win, "%d: chat %s", i + 1, _wins[i].from);
|
||||||
if (_wins[i].unread > 0) {
|
|
||||||
wprintw(_cons_win, " !! - ");
|
|
||||||
} else {
|
|
||||||
wprintw(_cons_win, " - ");
|
|
||||||
}
|
|
||||||
wprintw(_cons_win, "conversation : %s", _wins[i].from);
|
|
||||||
PContact contact = contact_list_get_contact(_wins[i].from);
|
PContact contact = contact_list_get_contact(_wins[i].from);
|
||||||
if (p_contact_name(contact) != NULL) {
|
if (p_contact_name(contact) != NULL) {
|
||||||
wprintw(_cons_win, " (%s)", p_contact_name(contact));
|
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;
|
break;
|
||||||
case WIN_PRIVATE:
|
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) {
|
if (_wins[i].unread > 0) {
|
||||||
wprintw(_cons_win, " !! - ");
|
wprintw(_cons_win, ", %d unread", _wins[i].unread);
|
||||||
} else {
|
|
||||||
wprintw(_cons_win, " - ");
|
|
||||||
}
|
}
|
||||||
wprintw(_cons_win, "private : %s", _wins[i].from);
|
|
||||||
break;
|
break;
|
||||||
case WIN_MUC:
|
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) {
|
if (_wins[i].unread > 0) {
|
||||||
wprintw(_cons_win, " !! - ");
|
wprintw(_cons_win, ", %d unread", _wins[i].unread);
|
||||||
} else {
|
|
||||||
wprintw(_cons_win, " - ");
|
|
||||||
}
|
}
|
||||||
wprintw(_cons_win, "chat room : %s", _wins[i].from);
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user