summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-07-28 00:13:40 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-07-28 00:13:40 +0800
commit296b692a5e113320c4de92b7ab1277bdc2891646 (patch)
tree410120e8c8064adc641f3928257a1a4b266f36a7 /mbbsd
parentae234cf199abc1bd18bea3e25d3c694a63d48983 (diff)
downloadpttbbs-296b692a5e113320c4de92b7ab1277bdc2891646.tar
pttbbs-296b692a5e113320c4de92b7ab1277bdc2891646.tar.gz
pttbbs-296b692a5e113320c4de92b7ab1277bdc2891646.tar.bz2
pttbbs-296b692a5e113320c4de92b7ab1277bdc2891646.tar.lz
pttbbs-296b692a5e113320c4de92b7ab1277bdc2891646.tar.xz
pttbbs-296b692a5e113320c4de92b7ab1277bdc2891646.tar.zst
pttbbs-296b692a5e113320c4de92b7ab1277bdc2891646.zip
fix bug
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3391 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 3dc2c3b8..259e1110 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1347,7 +1347,7 @@ cross_post(int ent, fileheader_t * fhdr, const char *direct)
if ( !((currmode & MODE_BOARD) || HasUserPerm(PERM_SYSOP)) &&
(cuser.firstlogin > (now - (time4_t)bcache[author - 1].post_limit_regtime * 2592000) ||
- cuser.badpost > (255 - (unsigned int)(bcache[currbid - 1].post_limit_badpost)) ||
+ cuser.badpost > (255 - (unsigned int)(bcache[author - 1].post_limit_badpost)) ||
cuser.numlogins < ((unsigned int)(bcache[author - 1].post_limit_logins) * 10) ||
cuser.numposts < ((unsigned int)(bcache[author - 1].post_limit_posts) * 10)) ) {
vmsg("§A¤£°÷¸ê²`³á¡I");