summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-02-23 11:05:17 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-02-23 11:05:17 +0800
commitc53646e3f2fc8678827ccc4d49e1568e3c85d20c (patch)
treec5c0c4a2f4879e5877f4c50d9e54073b19a47b42 /mbbsd
parent36c95aa495448c8fcf8937f3c1af930062c104b6 (diff)
downloadpttbbs-c53646e3f2fc8678827ccc4d49e1568e3c85d20c.tar
pttbbs-c53646e3f2fc8678827ccc4d49e1568e3c85d20c.tar.gz
pttbbs-c53646e3f2fc8678827ccc4d49e1568e3c85d20c.tar.bz2
pttbbs-c53646e3f2fc8678827ccc4d49e1568e3c85d20c.tar.lz
pttbbs-c53646e3f2fc8678827ccc4d49e1568e3c85d20c.tar.xz
pttbbs-c53646e3f2fc8678827ccc4d49e1568e3c85d20c.tar.zst
pttbbs-c53646e3f2fc8678827ccc4d49e1568e3c85d20c.zip
- assess: when fixing goodpost number, overwrite values even if alerted.
(fixing the issue that some people get wrong gp after fixed) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3942 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/assess.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mbbsd/assess.c b/mbbsd/assess.c
index e771a809..231ca71b 100644
--- a/mbbsd/assess.c
+++ b/mbbsd/assess.c
@@ -80,7 +80,9 @@ u_fixgoodpost(void)
outs("開始修正優文之前,有些功\課要麻煩您先查好:\n\n"
"請先找到你所有的優文文章的看版與" AID_DISPLAYNAME "\n"
AID_DISPLAYNAME "的查詢方法是在該篇文章前面按下大寫 Q 。\n"
- "查好後請把這些資料放在手邊,等下會請您輸入。\n\n");
+ "查好後請把這些資料放在手邊,等下會請您輸入。\n"
+ "另外,若有多重登入請先關閉其它連線。\n"
+ "\n");
outs("如果一切都準備好了,請按下 y 開始,或其它任意鍵跳出。\n\n");
if (getans("優文的資料都查好了嗎?") != 'y')
{
@@ -252,6 +254,8 @@ u_fixgoodpost(void)
"%s %s 自動修正優文數: 由 %d 變為 %d\n", Cdate(&now), cuser.userid,
cuser.goodpost, newgp);
cuser.goodpost = newgp;
+ if ((currutmp) && (currutmp->alerts & ALERT_PWD_GOODPOST))
+ currutmp->alerts &= ~ALERT_PWD_GOODPOST; // use my version
// update passwd file here?
passwd_update(usernum, &cuser);
vmsgf("更新優文數目為%d。", newgp);