summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-07-03 13:49:14 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-07-03 13:49:14 +0800
commit0cafa411998253b5a07293d5005919f1e28ed8a7 (patch)
tree2809f1c5832c154da96bd5ac3e143b6399339051 /mbbsd/talk.c
parenta0f730ed9b253d8d9f49e7a339955e4e146f8745 (diff)
downloadpttbbs-0cafa411998253b5a07293d5005919f1e28ed8a7.tar
pttbbs-0cafa411998253b5a07293d5005919f1e28ed8a7.tar.gz
pttbbs-0cafa411998253b5a07293d5005919f1e28ed8a7.tar.bz2
pttbbs-0cafa411998253b5a07293d5005919f1e28ed8a7.tar.lz
pttbbs-0cafa411998253b5a07293d5005919f1e28ed8a7.tar.xz
pttbbs-0cafa411998253b5a07293d5005919f1e28ed8a7.tar.zst
pttbbs-0cafa411998253b5a07293d5005919f1e28ed8a7.zip
* directly show cuser if user is querying self
* change description of numpost git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4723 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index b477c206..5851dcdf 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -451,6 +451,11 @@ my_query(const char *uident)
setutmpmode(TQUERY);
currutmp->destuid = tuid;
+ // XXX some users keep complaining that query result is not synced...
+ // well, make them happy now.
+ if (tuid == usernum)
+ memcpy(&muser, &cuser, sizeof(muser));
+
if ((uentp = (userinfo_t *) search_ulist(tuid)))
fri_stat = friend_stat(currutmp, uentp);
@@ -471,9 +476,9 @@ my_query(const char *uident)
#endif
move(2, 40);
#ifdef ASSESS
- prints("《文章篇數》%d篇 (優:%d/劣:%d)\n", muser.numposts, muser.goodpost, muser.badpost);
+ prints("《有效文章篇數》%d篇 (優:%d/劣:%d)\n", muser.numposts, muser.goodpost, muser.badpost);
#else
- prints("《文章篇數》%d篇\n", muser.numposts);
+ prints("《有效文章篇數》%d篇\n", muser.numposts);
#endif
prints(ANSI_COLOR(1;33) "《目前動態》%-28.28s" ANSI_RESET,