diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-10-13 23:22:21 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-10-13 23:22:21 +0800 |
commit | 4bc35b3870807886f1019cf52ad8e91d150774ef (patch) | |
tree | 72d8a05b274b439c175486d086e0ceeb3f811c34 /mbbsd/menu.c | |
parent | a3b209f669a99367136225cf890487df69dfabe0 (diff) | |
download | pttbbs-4bc35b3870807886f1019cf52ad8e91d150774ef.tar pttbbs-4bc35b3870807886f1019cf52ad8e91d150774ef.tar.gz pttbbs-4bc35b3870807886f1019cf52ad8e91d150774ef.tar.bz2 pttbbs-4bc35b3870807886f1019cf52ad8e91d150774ef.tar.lz pttbbs-4bc35b3870807886f1019cf52ad8e91d150774ef.tar.xz pttbbs-4bc35b3870807886f1019cf52ad8e91d150774ef.tar.zst pttbbs-4bc35b3870807886f1019cf52ad8e91d150774ef.zip |
changes mailalert to 1 bit only.
reserved other 7 trigers for updating current status on the fly when user is online.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3223 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/menu.c')
-rw-r--r-- | mbbsd/menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/menu.c b/mbbsd/menu.c index 5b4c8494..17d51a8b 100644 --- a/mbbsd/menu.c +++ b/mbbsd/menu.c @@ -66,7 +66,7 @@ showtitle(const char *title, const char *mid) mlen = strlen(mid); } #else - if (currutmp->mailalert) { + if (ISNEWMAIL(currutmp)) { mid = " 郵差來按鈴囉 "; mid_attr = ANSI_COLOR(41;5); mlen = strlen(mid); @@ -548,7 +548,7 @@ static const commands_t moneylist[] = { }; int main_menu(void) { - domenu(M_MMENU, "主功\能表", (currutmp->mailalert ? 'M' : 'C'), cmdlist); + domenu(M_MMENU, "主功\能表", (ISNEWMAIL(currutmp) ? 'M' : 'C'), cmdlist); return 0; } |