summaryrefslogtreecommitdiffstats
path: root/mbbsd/passwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/passwd.c')
-rw-r--r--mbbsd/passwd.c6
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;