diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2010-06-10 03:03:32 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2010-06-10 03:03:32 +0800 |
commit | 3e2b166eeae483e018fe2f5f8177f912c93804f7 (patch) | |
tree | 3975f27fad760331efbb677a7ad67a7c96886495 | |
parent | 67d2bf2a32c6f92d49d5cfc057523dabb96700d5 (diff) | |
download | pttbbs-3e2b166eeae483e018fe2f5f8177f912c93804f7.tar pttbbs-3e2b166eeae483e018fe2f5f8177f912c93804f7.tar.gz pttbbs-3e2b166eeae483e018fe2f5f8177f912c93804f7.tar.bz2 pttbbs-3e2b166eeae483e018fe2f5f8177f912c93804f7.tar.lz pttbbs-3e2b166eeae483e018fe2f5f8177f912c93804f7.tar.xz pttbbs-3e2b166eeae483e018fe2f5f8177f912c93804f7.tar.zst pttbbs-3e2b166eeae483e018fe2f5f8177f912c93804f7.zip |
* let BM abort 'validate list' and provide more information.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5055 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/friend.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/friend.c b/pttbbs/mbbsd/friend.c index f76740a0..87152f6b 100644 --- a/pttbbs/mbbsd/friend.c +++ b/pttbbs/mbbsd/friend.c @@ -513,16 +513,34 @@ friend_edit(int type) } } else if (uident[0] == 'c') { int expire = 0, badpost = 0; + + move(1, 0); clrtobot(); + // we have seen some BM hit this accidentally.. so ask again. + outs("整理名單可清除已消失、過期、或已有劣文的帳號。\n\n"); + getdata(2, 0, - "要從名單中清除幾個月沒上站(包含帳號已消失)的使用者? (0=不清除)[0] ", + "要從名單中清除幾個月沒上站的使用者? (0=不清除)[0] ", uident, 4, NUMECHO); expire = atoi(uident); #ifdef ASSESS getdata(3, 0, "要從名單中清除有幾篇以上劣文的使用者? (0=不清除)[0] ", uident, 4, NUMECHO); -#endif badpost = atoi(uident); +#endif + move(4, 0); + outs("將清除下列類別的帳號:\n"); + outs(" * 已消失的帳號\n"); + if (expire) + prints(" * %d 個月沒上站的使用者\n", expire); + if (badpost) + prints(" * 已有 %d 篇劣文的使用者\n", badpost); + + getdata(9, 0, + "確定要執行嗎? [y/N] ", + uident, 3, LCECHO); + if (uident[0] != 'y') + break; // delete all users that not in list. friend_validate(type, expire, badpost); |