diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-11-09 01:49:03 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-11-09 01:49:03 +0800 |
commit | db544260afa4568e942559cf45a382e18c5d1783 (patch) | |
tree | a3e9d956c72f9346a9a27329a92a0ebba04ca099 | |
parent | 7894efba356df7180602cec5a1ef64228c92e9f6 (diff) | |
download | pttbbs-db544260afa4568e942559cf45a382e18c5d1783.tar pttbbs-db544260afa4568e942559cf45a382e18c5d1783.tar.gz pttbbs-db544260afa4568e942559cf45a382e18c5d1783.tar.bz2 pttbbs-db544260afa4568e942559cf45a382e18c5d1783.tar.lz pttbbs-db544260afa4568e942559cf45a382e18c5d1783.tar.xz pttbbs-db544260afa4568e942559cf45a382e18c5d1783.tar.zst pttbbs-db544260afa4568e942559cf45a382e18c5d1783.zip |
fix bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@564 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index e8fa0075..2ee8423d 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -1,4 +1,4 @@ -/* $Id: bbs.c,v 1.75 2002/11/08 17:45:43 in2 Exp $ */ +/* $Id: bbs.c,v 1.76 2002/11/08 17:49:03 in2 Exp $ */ #include "bbs.h" static void @@ -1228,7 +1228,7 @@ recommend(int ent, fileheader_t * fhdr, char *direct) /* 暫時性的 code 原來舊有值取消 */ fhdr->recommend = 0; - if (fhdr->recommend < 0 && strcmp(cuser.userid, fhdr->owner) == 0){ + if (fhdr->recommend == 0 && strcmp(cuser.userid, fhdr->owner) == 0){ vmsg("警告! 本人不能推薦第一次!"); return FULLUPDATE; } |