From f96325e164ca940616f74b6cf5f9e50fc310d244 Mon Sep 17 00:00:00 2001 From: wens Date: Sun, 6 Mar 2005 11:13:40 +0000 Subject: fix bug git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2578 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 2 +- mbbsd/mail.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 4662ace5..d8da50b0 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1034,7 +1034,7 @@ cross_post(int ent, fileheader_t * fhdr, char *direct) } if ( !((currmode & MODE_BOARD) || HAS_PERM(PERM_SYSOP)) && - (cuser.firstlogin > (now - (time4_t)bcache[currbid - 1].post_limit_regtime * 2592000) || + (cuser.firstlogin > (now - (time4_t)bcache[author - 1].post_limit_regtime * 2592000) || cuser.numlogins < ((unsigned int)(bcache[author - 1].post_limit_logins) * 10) || cuser.numposts < ((unsigned int)(bcache[author - 1].post_limit_posts) * 10)) ) { move(5, 10); diff --git a/mbbsd/mail.c b/mbbsd/mail.c index 42cae1b7..5d4ba3b3 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -1045,7 +1045,7 @@ mail_cross_post(int ent, fileheader_t * fhdr, char *direct) ent = getbnum(xboard); if ( !((currmode & MODE_BOARD) || HAS_PERM(PERM_SYSOP)) && - (cuser.firstlogin > (now - (time4_t)bcache[currbid - 1].post_limit_regtime * 2592000) || + (cuser.firstlogin > (now - (time4_t)bcache[ent - 1].post_limit_regtime * 2592000) || cuser.numlogins < ((unsigned int)(bcache[ent - 1].post_limit_logins) * 10) || cuser.numposts < ((unsigned int)(bcache[ent - 1].post_limit_posts) * 10)) ) { move(5, 10); -- cgit v1.2.3