summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-07-15 21:32:34 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-07-15 21:32:34 +0800
commita07e0b87426c4906af8b374772cdeb8223c8967f (patch)
tree7a2004e0a15e82dbbdf1898e7f568caea1ea3f2a
parent682a8a4761057952fd55201d5144fb94be3b9d2d (diff)
downloadpttbbs-a07e0b87426c4906af8b374772cdeb8223c8967f.tar
pttbbs-a07e0b87426c4906af8b374772cdeb8223c8967f.tar.gz
pttbbs-a07e0b87426c4906af8b374772cdeb8223c8967f.tar.bz2
pttbbs-a07e0b87426c4906af8b374772cdeb8223c8967f.tar.lz
pttbbs-a07e0b87426c4906af8b374772cdeb8223c8967f.tar.xz
pttbbs-a07e0b87426c4906af8b374772cdeb8223c8967f.tar.zst
pttbbs-a07e0b87426c4906af8b374772cdeb8223c8967f.zip
* make the money in query_self realtime
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4740 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/talk.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 5851dcdf..f1a884d7 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -451,10 +451,15 @@ my_query(const char *uident)
setutmpmode(TQUERY);
currutmp->destuid = tuid;
- // XXX some users keep complaining that query result is not synced...
+ // XXX some users keep complaining that query result (for numpost)
+ // is not synced...
// well, make them happy now.
if (tuid == usernum)
+ {
+ // XXX there're still users asking why money is not updated...
+ reload_money();
memcpy(&muser, &cuser, sizeof(muser));
+ }
if ((uentp = (userinfo_t *) search_ulist(tuid)))
fri_stat = friend_stat(currutmp, uentp);