diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-09-17 12:07:47 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-09-17 12:07:47 +0800 |
commit | 2a83fe8bd5b10cb1b6e1b9b4f8fc76096e185456 (patch) | |
tree | ab5b8e43e9768c1662e1b62544925cf9eb06a528 /mbbsd/passwd.c | |
parent | ae598bc932f6a2cc3227b5a65c8ab0c88dedcf69 (diff) | |
download | pttbbs-2a83fe8bd5b10cb1b6e1b9b4f8fc76096e185456.tar pttbbs-2a83fe8bd5b10cb1b6e1b9b4f8fc76096e185456.tar.gz pttbbs-2a83fe8bd5b10cb1b6e1b9b4f8fc76096e185456.tar.bz2 pttbbs-2a83fe8bd5b10cb1b6e1b9b4f8fc76096e185456.tar.lz pttbbs-2a83fe8bd5b10cb1b6e1b9b4f8fc76096e185456.tar.xz pttbbs-2a83fe8bd5b10cb1b6e1b9b4f8fc76096e185456.tar.zst pttbbs-2a83fe8bd5b10cb1b6e1b9b4f8fc76096e185456.zip |
* refine badpost code again
* remove more deprecated stuff
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4847 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/passwd.c')
-rw-r--r-- | mbbsd/passwd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c index 6a6ed455..060f0937 100644 --- a/mbbsd/passwd.c +++ b/mbbsd/passwd.c @@ -143,9 +143,13 @@ pwcuCancelBadpost() int day; PWCU_START(); + // no matter what, reload the timebomb + cuser.badpost = u.badpost; + cuser.timeremovebadpost = u.timeremovebadpost; + // check timebomb again day = (now - u.timeremovebadpost ) / DAY_SECONDS; - if (day <= BADPOST_CLEAR_DURATION) + if (day < BADPOST_CLEAR_DURATION) return -1; if (u.badpost < 1) return -1; |