summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-11-17 00:33:09 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-11-17 00:33:09 +0800
commita1e2d924f88017c50bb9f27f37285000c0ef2551 (patch)
tree7d222c80f08e48283d62346b25dc6d739806103e
parent787638dc4a8d173f07b448336f92aff6d3048852 (diff)
downloadpttbbs-a1e2d924f88017c50bb9f27f37285000c0ef2551.tar
pttbbs-a1e2d924f88017c50bb9f27f37285000c0ef2551.tar.gz
pttbbs-a1e2d924f88017c50bb9f27f37285000c0ef2551.tar.bz2
pttbbs-a1e2d924f88017c50bb9f27f37285000c0ef2551.tar.lz
pttbbs-a1e2d924f88017c50bb9f27f37285000c0ef2551.tar.xz
pttbbs-a1e2d924f88017c50bb9f27f37285000c0ef2551.tar.zst
pttbbs-a1e2d924f88017c50bb9f27f37285000c0ef2551.zip
* early providing badpost results
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5026 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/user.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c
index 990f5afa..fae69e0a 100644
--- a/pttbbs/mbbsd/user.c
+++ b/pttbbs/mbbsd/user.c
@@ -90,6 +90,8 @@ int u_cancelbadpost(void)
// XXX reload account here? (also simply optional)
pwcuReload();
+ prev = cuser.badpost; // since we reloaded, update cache again.
+ if (prev <= 0) return 0;
// early check for time (must do again later)
day = (now - cuser.timeremovebadpost ) / DAY_SECONDS;
@@ -100,8 +102,9 @@ int u_cancelbadpost(void)
}
// 無聊的 disclaimer...
- if( vmsg("我願意尊守站方規定,組規,以及板規[y/N]?")!='y' ||
- vmsg("我願意尊重不歧視族群,不鬧板,尊重各板主權力[y/N]?")!='y' ||
+ if( vmsgf("預計劣文將由 %d 篇變為 %d 篇,確定嗎[y/N]?", prev, prev-1) != 'y' ||
+ vmsg("我願意遵守站方規定,組規,以及板規[y/N]?")!='y' ||
+ vmsg("我願意尊重與不歧視族群,不鬧板,尊重各板主權力[y/N]?")!='y' ||
vmsg("我願意謹慎發表有意義言論,不謾罵攻擊,不跨板廣告[y/N]?")!='y' )
{
vmsg("請您思考清楚後再來申請刪除.");