summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-11-09 01:49:03 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-11-09 01:49:03 +0800
commit32ea40c94685187b2644443357e97c5fdea80d1b (patch)
tree85f6166073e1a7065e86ec46459479fe9cdf7475
parent52d8247678ea9b8242a3d9264a937bc3d3d76405 (diff)
downloadpttbbs-32ea40c94685187b2644443357e97c5fdea80d1b.tar
pttbbs-32ea40c94685187b2644443357e97c5fdea80d1b.tar.gz
pttbbs-32ea40c94685187b2644443357e97c5fdea80d1b.tar.bz2
pttbbs-32ea40c94685187b2644443357e97c5fdea80d1b.tar.lz
pttbbs-32ea40c94685187b2644443357e97c5fdea80d1b.tar.xz
pttbbs-32ea40c94685187b2644443357e97c5fdea80d1b.tar.zst
pttbbs-32ea40c94685187b2644443357e97c5fdea80d1b.zip
fix bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@564 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index e8fa0075..2ee8423d 100644
--- a/mbbsd/bbs.c
+++ b/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;
}