From: Michael Hampton Date: Wed, 2 Oct 2002 04:07:27 +0000 (+0000) Subject: * status_line() now shows "new mail" only when there is new mail X-Git-Tag: v7.86~6196 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=2b019b66a9fab04be523ad0dd84a533ae3452ec5;p=citadel.git * status_line() now shows "new mail" only when there is new mail --- diff --git a/citadel/ChangeLog b/citadel/ChangeLog index 7883ea6d4..9b6ea2bcc 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,7 @@ $Log$ + Revision 601.16 2002/10/02 04:07:27 error + * status_line() now shows "new mail" only when there is new mail + Revision 601.15 2002/10/01 04:00:13 ajc * html.c: speed improvement in html-to-ascii converter * messages.c: MASSIVE speed improvement in message output @@ -4040,4 +4043,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import - diff --git a/citadel/screen.c b/citadel/screen.c index c7c8550c3..eed34541d 100644 --- a/citadel/screen.c +++ b/citadel/screen.c @@ -69,9 +69,9 @@ void status_line(const char *humannode, const char *bbs_city, sln_printf("%s on ", room_name); if (humannode) sln_printf("%s ", humannode); - if (newmailcount > -1) { + if (newmailcount > 0) { waddch(statuswindow, ACS_VLINE); - sln_printf(" Mail: %d new ", newmailcount); + sln_printf(" %d new mail ", newmailcount); } sln_printf("\n"); } @@ -279,7 +279,7 @@ int sln_printf_if(char *fmt, ...) int scr_getc(int delay) { - char buf; + unsigned char buf; #ifdef HAVE_CURSES_H if (mainwindow) { @@ -288,8 +288,8 @@ int scr_getc(int delay) } #endif - buf = '\0'; - read (0, &buf, 1); + buf = '\0'; + read (0, &buf, 1); return buf; }