diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-01-07 05:39:02 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-01-07 05:39:02 +0800 |
commit | be4e0a83b16c0b27305c25bf4b8bbe12adab52f1 (patch) | |
tree | 622016aef1cf157e04a5376ecbe357e9f3761b76 /mbbsd/user.c | |
parent | c6e1aac9084a22e7c19eaf21a82570b265ff07c3 (diff) | |
download | pttbbs-be4e0a83b16c0b27305c25bf4b8bbe12adab52f1.tar pttbbs-be4e0a83b16c0b27305c25bf4b8bbe12adab52f1.tar.gz pttbbs-be4e0a83b16c0b27305c25bf4b8bbe12adab52f1.tar.bz2 pttbbs-be4e0a83b16c0b27305c25bf4b8bbe12adab52f1.tar.lz pttbbs-be4e0a83b16c0b27305c25bf4b8bbe12adab52f1.tar.xz pttbbs-be4e0a83b16c0b27305c25bf4b8bbe12adab52f1.tar.zst pttbbs-be4e0a83b16c0b27305c25bf4b8bbe12adab52f1.zip |
1. fix a bug that files' stamp in the same board are not in order.
2. delete user's posts when the id is deleted
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3466 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r-- | mbbsd/user.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index a43b1d7c..3a3c396f 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -24,6 +24,7 @@ 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); |