diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-08-31 11:43:10 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-08-31 11:43:10 +0800 |
commit | bc46922d754ce249916b54f3398f66bf4c7ae9b1 (patch) | |
tree | 6d36d8276decb143d0f704c0181e12846cdb6342 /mbbsd/friend.c | |
parent | fe49c3a76b174403c43cca4420ff450dab47c293 (diff) | |
download | pttbbs-bc46922d754ce249916b54f3398f66bf4c7ae9b1.tar pttbbs-bc46922d754ce249916b54f3398f66bf4c7ae9b1.tar.gz pttbbs-bc46922d754ce249916b54f3398f66bf4c7ae9b1.tar.bz2 pttbbs-bc46922d754ce249916b54f3398f66bf4c7ae9b1.tar.lz pttbbs-bc46922d754ce249916b54f3398f66bf4c7ae9b1.tar.xz pttbbs-bc46922d754ce249916b54f3398f66bf4c7ae9b1.tar.zst pttbbs-bc46922d754ce249916b54f3398f66bf4c7ae9b1.zip |
* fix ANSI in getdata/vgets prompts
* allow badpost filtering for everyone
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4805 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/friend.c')
-rw-r--r-- | mbbsd/friend.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/mbbsd/friend.c b/mbbsd/friend.c index aa2ad319..f3f88925 100644 --- a/mbbsd/friend.c +++ b/mbbsd/friend.c @@ -512,17 +512,16 @@ friend_edit(int type) dirty = 1; } } else if (uident[0] == 'c') { - int expire, badpost; + int expire = 0, badpost = 0; getdata(2, 0, "要從名單中清除幾個月沒上站(包含帳號已消失)的使用者? (0=不清除)[0] ", uident, 4, NUMECHO); expire = atoi(uident); - if (HasUserPerm(PERM_BM | PERM_SYSOP)) - { - getdata(3, 0, - "要從名單中清除有幾篇以上劣文的使用者? (0=不清除)[0] ", - uident, 4, NUMECHO); - } +#ifdef ASSESS + getdata(3, 0, + "要從名單中清除有幾篇以上劣文的使用者? (0=不清除)[0] ", + uident, 4, NUMECHO); +#endif badpost = atoi(uident); // delete all users that not in list. |