From af03cd6cf81e83aed8c484b4836c4bb887a1de80 Mon Sep 17 00:00:00 2001 From: kcwu Date: Thu, 25 Jun 2009 07:57:57 +0000 Subject: * 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 --- mbbsd/user.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mbbsd') 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 -- cgit v1.2.3