summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/user.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 6d4b25cd..d235d01f 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -79,6 +79,9 @@ int u_cancelbadpost(void)
{vmsg("�еn�X��L����, �_�h�����z."); return 0;}
passwd_query(usernum, &cuser);
+ if (currutmp && (currutmp->alerts & ALERT_PWD))
+ currutmp->alerts &= ~ALERT_PWD;
+
day = 180 - (now - cuser.timeremovebadpost ) / 86400;
if(day>0 && day<=180)
{
@@ -98,12 +101,12 @@ int u_cancelbadpost(void)
{vmsg("�еn�X��L����, �_�h�����z."); return 0;}
if(cuser.badpost)
{
- cuser.badpost--;
+ int prev = cuser.badpost--;
cuser.timeremovebadpost = now;
passwd_update(usernum, &cuser);
log_filef("log/cancelbadpost.log", LOG_CREAT,
- "%s %s �R���@�g�H�� (�{ %d �g)\n",
- Cdate(&now), cuser.userid, cuser.badpost);
+ "%s %s �R���@�g�H�� (%d -> %d �g)\n",
+ Cdate(&now), cuser.userid, prev, cuser.badpost);
}
vmsg("���߱z�w�g���\\�R���@�g�H��.");
return 0;