summaryrefslogtreecommitdiffstats
path: root/mbbsd/chat.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-10-13 23:22:21 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-10-13 23:22:21 +0800
commit4bc35b3870807886f1019cf52ad8e91d150774ef (patch)
tree72d8a05b274b439c175486d086e0ceeb3f811c34 /mbbsd/chat.c
parenta3b209f669a99367136225cf890487df69dfabe0 (diff)
downloadpttbbs-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/chat.c')
-rw-r--r--mbbsd/chat.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mbbsd/chat.c b/mbbsd/chat.c
index e736e387..917f8c8d 100644
--- a/mbbsd/chat.c
+++ b/mbbsd/chat.c
@@ -314,7 +314,6 @@ t_chat(void)
struct hostent *h;
int cfd, cmdpos, ch;
int currchar;
- int newmail;
int chatting = YEA;
char fpath[80];
struct ChatBuf chatbuf;
@@ -375,7 +374,7 @@ t_chat(void)
add_io(cfd, 0);
- newmail = currchar = 0;
+ currchar = 0;
cmdpos = -1;
memset(lastcmd, 0, sizeof(lastcmd));
@@ -440,8 +439,7 @@ t_chat(void)
continue;
}
- if (!newmail && currutmp->mailalert) {
- newmail = 1;
+ if (ISNEWMAIL(currutmp)) {
printchatline("¡» ¾´¡I¶l®t¤S¨Ó¤F...");
}
if (ch == I_OTHERDATA) {/* incoming */