diff options
-rw-r--r-- | pttbbs/mbbsd/friend.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pttbbs/mbbsd/friend.c b/pttbbs/mbbsd/friend.c index 48ebc9bd..90929443 100644 --- a/pttbbs/mbbsd/friend.c +++ b/pttbbs/mbbsd/friend.c @@ -326,6 +326,9 @@ static void delete_user_friend(const char *uident, const char *thefriend, int type) { char fn[PATHLEN]; + // some stupid user simply set themselves and caused recursion here. + if (strcasecmp(uident, thefriend) == 0) + return; sethomefile(fn, uident, "aloha"); delete_friend_from_file(fn, thefriend, 0); } |