summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-18 14:01:27 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-18 14:01:27 +0800
commit20a5d27b9cd5b01182535ec3316b395b9db11eaf (patch)
tree8888603986172167b2e9d18d163204cb826b63d7
parent09dcd2bcb7d36c679d54aaf5339d71b289495be3 (diff)
downloadpttbbs-20a5d27b9cd5b01182535ec3316b395b9db11eaf.tar
pttbbs-20a5d27b9cd5b01182535ec3316b395b9db11eaf.tar.gz
pttbbs-20a5d27b9cd5b01182535ec3316b395b9db11eaf.tar.bz2
pttbbs-20a5d27b9cd5b01182535ec3316b395b9db11eaf.tar.lz
pttbbs-20a5d27b9cd5b01182535ec3316b395b9db11eaf.tar.xz
pttbbs-20a5d27b9cd5b01182535ec3316b395b9db11eaf.tar.zst
pttbbs-20a5d27b9cd5b01182535ec3316b395b9db11eaf.zip
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
-rw-r--r--mbbsd/user.c3
1 files changed, 3 insertions, 0 deletions
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;