From 20a5d27b9cd5b01182535ec3316b395b9db11eaf Mon Sep 17 00:00:00 2001 From: scw Date: Fri, 18 Feb 2005 06:01:27 +0000 Subject: showplans() does not always called after getuser() so that it should update xuser itself. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2518 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/user.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mbbsd/user.c b/mbbsd/user.c index 18ee988b..8802dfcb 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -846,6 +846,9 @@ showplans(char *uid) i++; } + + if (strcmp(xuser.userid, uid) != 0) + getuser(uid); // update xuser if (user_query_mode == 1) { win = xuser.five_win; lost = xuser.five_lose; -- cgit v1.2.3