summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-01-04 01:49:35 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-01-04 01:49:35 +0800
commitd1d89bad6d9ff63eb54255d298693a466e63c459 (patch)
tree0c64950d6de5a2c9671a1ff87d2ecb1b43c5c096 /mbbsd
parentdefbdb6544e58ade4316af4a2e003568d34aa6a1 (diff)
downloadpttbbs-d1d89bad6d9ff63eb54255d298693a466e63c459.tar
pttbbs-d1d89bad6d9ff63eb54255d298693a466e63c459.tar.gz
pttbbs-d1d89bad6d9ff63eb54255d298693a466e63c459.tar.bz2
pttbbs-d1d89bad6d9ff63eb54255d298693a466e63c459.tar.lz
pttbbs-d1d89bad6d9ff63eb54255d298693a466e63c459.tar.xz
pttbbs-d1d89bad6d9ff63eb54255d298693a466e63c459.tar.zst
pttbbs-d1d89bad6d9ff63eb54255d298693a466e63c459.zip
fix a bug for cancel post
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3261 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index a96138c5..a9edf6f3 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -76,7 +76,7 @@ int u_cancelbadpost(void)
{vmsg("請登出其他視窗, 否則不受理."); return 0;}
passwd_query(usernum, &cuser);
- day = (cuser.timeremovebadpost - now) / 86400 + 180;
+ day = 180 - (now - cuser.timeremovebadpost ) / 86400;
if(day>0 && day<=180)
{
vmsgf("每 180 天才能申請一次, 還剩 %d 天.", day);