# HG changeset patch # User Maxim Vuets # Date 1220711581 -10800 # Node ID 9d78b571e69365630a50b5568c69f0dc5c056d69 # Parent 6d36a36a01c6bdd3d221860d026efe0d20760d88 Show '#' for unread message per buddy on the buddy status line '~' is still displayed when chat mode is enabled. But when it is disabled '#' is shown if there is an unread message from the current buddy (including groups). diff -r 6d36a36a01c6 -r 9d78b571e693 mcabber/src/screen.c --- a/mcabber/src/screen.c Sun Aug 31 22:52:11 2008 +0200 +++ b/mcabber/src/screen.c Sat Sep 06 17:33:01 2008 +0300 @@ -1607,9 +1607,6 @@ // Clear the line werase(chatstatusWnd); - if (chatmode) - wprintw(chatstatusWnd, "~"); - if (!current_buddy) { if (forceupdate) { update_panels(); @@ -1636,6 +1633,16 @@ isspe = 1; } + if (chatmode) { + wprintw(chatstatusWnd, "~"); + } else { + unsigned short bflags = buddy_getflags(BUDDATA(current_buddy)); + if (bflags & ROSTER_FLAG_MSG) { + // There is an unread message from the current buddy + wprintw(chatstatusWnd, "#"); + } + } + if (chatmode && !isgrp) { winbuf *win_entry; win_entry = scr_SearchWindow(buddy_getjid(BUDDATA(current_buddy)), isspe);