diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-08-03 19:20:13 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-08-03 19:20:13 +0800 |
commit | 0f51b44287062fef303f8196602ad6c119bab7ed (patch) | |
tree | ea5ea4e1527bb8a2fce3aeb4a9e45d55d38b9895 | |
parent | a89b2e2ec2b1a40740c25c2dcc6ccbed5cc4ad33 (diff) | |
download | pttbbs-0f51b44287062fef303f8196602ad6c119bab7ed.tar pttbbs-0f51b44287062fef303f8196602ad6c119bab7ed.tar.gz pttbbs-0f51b44287062fef303f8196602ad6c119bab7ed.tar.bz2 pttbbs-0f51b44287062fef303f8196602ad6c119bab7ed.tar.lz pttbbs-0f51b44287062fef303f8196602ad6c119bab7ed.tar.xz pttbbs-0f51b44287062fef303f8196602ad6c119bab7ed.tar.zst pttbbs-0f51b44287062fef303f8196602ad6c119bab7ed.zip |
fix bug in select_mode
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@1080 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/read.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pttbbs/mbbsd/read.c b/pttbbs/mbbsd/read.c index cc5f480a..9cc2c398 100644 --- a/pttbbs/mbbsd/read.c +++ b/pttbbs/mbbsd/read.c @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.26 2003/07/04 11:37:02 victor Exp $ */ +/* $Id$ */ #include "bbs.h" static fileheader_t *headers = NULL; @@ -515,8 +515,8 @@ select_read(keeploc_t * locmem, int sr_mode) tag = fh.title; temp = strstr(tag, query); if (temp == NULL || temp != tag) { - write(fr, &fh, size); fh.money = reference | FHR_REFERENCE; + write(fr, &fh, size); } } case RS_AUTHOR: @@ -524,8 +524,8 @@ select_read(keeploc_t * locmem, int sr_mode) ++reference; tag = fh.owner; if (strcasestr(tag, query)) { - write(fr, &fh, size); fh.money = reference | FHR_REFERENCE; + write(fr, &fh, size); } } break; @@ -533,8 +533,8 @@ select_read(keeploc_t * locmem, int sr_mode) while (read(fd, &fh, size) == size) { ++reference; if (fh.filemode & FILE_MARKED) { - write(fr, &fh, size); fh.money = reference | FHR_REFERENCE; + write(fr, &fh, size); } } break; |