diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-07-02 10:12:56 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-07-02 10:12:56 +0800 |
commit | 038f26837cc4efacf5798361e0d229516ba119ff (patch) | |
tree | 6449f857808f26d0fcfa9f43a61f7753e7c7eaa4 /mbbsd | |
parent | b3c045bab7abd2e9d9e0cb43a65f4ec6c9dd3f67 (diff) | |
download | pttbbs-038f26837cc4efacf5798361e0d229516ba119ff.tar pttbbs-038f26837cc4efacf5798361e0d229516ba119ff.tar.gz pttbbs-038f26837cc4efacf5798361e0d229516ba119ff.tar.bz2 pttbbs-038f26837cc4efacf5798361e0d229516ba119ff.tar.lz pttbbs-038f26837cc4efacf5798361e0d229516ba119ff.tar.xz pttbbs-038f26837cc4efacf5798361e0d229516ba119ff.tar.zst pttbbs-038f26837cc4efacf5798361e0d229516ba119ff.zip |
hit to water program
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@399 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/mail.c | 19 | ||||
-rw-r--r-- | mbbsd/talk.c | 6 |
2 files changed, 21 insertions, 4 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c index f4ba6d64..a4d47df7 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -1,4 +1,4 @@ -/* $Id: mail.c,v 1.14 2002/06/27 19:49:48 kcwu Exp $ */ +/* $Id: mail.c,v 1.15 2002/07/02 02:12:56 in2 Exp $ */ #include "bbs.h" char currmaildir[32]; static char msg_cc[] = "\033[32m[�s�զW��]\033[m\n"; @@ -1220,8 +1220,16 @@ static int mail_waterball(int ent, fileheader_t *fhdr, char *direct) char fname[500], genbuf[200]; FILE *fp; + if( !strstr(fhdr->title, "���u�O��") ){ + vmsg("�����O ���u�O�� �~��ϥΤ��y��z����!"); + return 1; + } if(!address[0]) strcpy(address, cuser.email); + move(b_lines - 5, 0); + outs("���y��z�{��:\n" + "�t�αN�|���өM���P�H�᪺���y�U�W�ۿW��\n" + "����I���ɭ� (�y�W�ɬq���~) �N��ƾ�z�n�H�e���z\n\n\n"); if(address[0]) { sprintf(genbuf, "�H�� [%s] ��(Y/N/Q)�H[Y] ", address); getdata(b_lines - 2, 0, genbuf, fname, 3, LCECHO); @@ -1235,7 +1243,7 @@ static int mail_waterball(int ent, fileheader_t *fhdr, char *direct) if(fname[0] && strchr(fname, '.')) { strcpy(address, fname); } else { - outmsg("�����B�z"); + vmsg("�����B�z"); return 1; } } @@ -1243,7 +1251,11 @@ static int mail_waterball(int ent, fileheader_t *fhdr, char *direct) return -2; // sprintf(fname, "%d\n", cmode); - getdata(b_lines - 1, 0, "�ϥμҦ�(0/1)? [1]", fname, 3, LCECHO); + getdata(b_lines - 1, 0, "�ϥμҦ�(0/1/Q)? [1]", fname, 3, LCECHO); + if( fname[0] == 'Q' || fname[0] == 'q' ){ + outmsg("�����B�z"); + return 1; + } cmode = (fname[0] != '0' && fname[0] != '1') ? 1 : fname[0] - '0'; sprintf(fname, BBSHOME "/jobspool/water.src.%s-%d", @@ -1257,6 +1269,7 @@ static int mail_waterball(int ent, fileheader_t *fhdr, char *direct) fp = fopen(fname, "wt"); fprintf(fp, "%s\n%s\n%d\n", cuser.userid, address, cmode); fclose(fp); + vmsg("�]�w����, �t�αN�b�U�@�Ӿ��I(�y�W�ɬq���~)�N��ƱH���z"); return FULLUPDATE; } #endif diff --git a/mbbsd/talk.c b/mbbsd/talk.c index f63778c9..e0c5fa92 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1,4 +1,4 @@ -/* $Id: talk.c,v 1.72 2002/06/30 09:20:21 in2 Exp $ */ +/* $Id: talk.c,v 1.73 2002/07/02 02:12:56 in2 Exp $ */ #include "bbs.h" #define QCAST int (*)(const void *, const void *) @@ -771,6 +771,10 @@ int t_display(void) } setuserfile(genbuf, fn_writelog); if (more(genbuf, YEA) != -1){ + move(b_lines - 4, 0); + outs("\033[1;33;45m���{�b Ptt���ѳзs�����y��z�{����\033[m\n" + "�z�N���y�s�ܫH�c��, �b�i�l����j�ӫH��e�� u,\n" + "�t�ΧY�|�N�z�����y�������s��z��H�e���z��! \n"); getdata(b_lines - 1, 0, "�M��(C) ���ܳƧѿ�(M) �O�d(R) (C/M/R)?[R]", ans, sizeof(ans), LCECHO); if (*ans == 'm'){ |