diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-25 15:57:57 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-25 15:57:57 +0800 |
commit | af03cd6cf81e83aed8c484b4836c4bb887a1de80 (patch) | |
tree | 4c83b271c3a959459f62f562dc6e622b3ebec4ff /mbbsd/user.c | |
parent | db6a0072fa694b6b45d09ec55d6c26931b63fb8f (diff) | |
download | pttbbs-af03cd6cf81e83aed8c484b4836c4bb887a1de80.tar pttbbs-af03cd6cf81e83aed8c484b4836c4bb887a1de80.tar.gz pttbbs-af03cd6cf81e83aed8c484b4836c4bb887a1de80.tar.bz2 pttbbs-af03cd6cf81e83aed8c484b4836c4bb887a1de80.tar.lz pttbbs-af03cd6cf81e83aed8c484b4836c4bb887a1de80.tar.xz pttbbs-af03cd6cf81e83aed8c484b4836c4bb887a1de80.tar.zst pttbbs-af03cd6cf81e83aed8c484b4836c4bb887a1de80.zip |
* don't delete ALLPOST of user post if the account is expired.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4700 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r-- | mbbsd/user.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 59501cb0..a4425205 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -26,7 +26,6 @@ kill_user(int num, const char *userid) sethomepath(src, userid); snprintf(dst, sizeof(dst), "tmp/%s", userid); friend_delete_all(userid, FRIEND_ALOHA); - delete_allpost(userid); if (dashd(src) && Rename(src, dst) == 0) { snprintf(src, sizeof(src), "/bin/rm -fr home/%c/%s >/dev/null 2>&1", userid[0], userid); system(src); @@ -333,6 +332,7 @@ violate_law(userec_t * u, int unum) } kick_all(u->userid); + delete_allpost(u->userid); kill_user(unum, u->userid); post_violatelaw(u->userid, cuser.userid, reason, "¬å°£ ID"); } else { @@ -1074,6 +1074,7 @@ uinfo_query(userec_t *u, int adminmode, int unum) memcpy(u, &x, sizeof(x)); if (tokill) { kick_all(x.userid); + delete_allpost(x.userid); kill_user(unum, x.userid); return; } else |