summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-07 13:54:36 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-07 13:54:36 +0800
commitdfeb1a9e710617bb8b800ec0a11350d1c9f79489 (patch)
treef4d24b991bdf3004165fa8468710a38ab02ca21b
parentd4d7b4113cf03c906f9d408526b0dee082adde53 (diff)
downloadpttbbs-dfeb1a9e710617bb8b800ec0a11350d1c9f79489.tar
pttbbs-dfeb1a9e710617bb8b800ec0a11350d1c9f79489.tar.gz
pttbbs-dfeb1a9e710617bb8b800ec0a11350d1c9f79489.tar.bz2
pttbbs-dfeb1a9e710617bb8b800ec0a11350d1c9f79489.tar.lz
pttbbs-dfeb1a9e710617bb8b800ec0a11350d1c9f79489.tar.xz
pttbbs-dfeb1a9e710617bb8b800ec0a11350d1c9f79489.tar.zst
pttbbs-dfeb1a9e710617bb8b800ec0a11350d1c9f79489.zip
* move oldnumlogin display from talk=>query to user=>info.
git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4817 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/talk.c6
-rw-r--r--mbbsd/user.c7
2 files changed, 5 insertions, 8 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 5c906e9c..e807cf64 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -475,16 +475,10 @@ my_query(const char *uident)
// ------------------------------------------------------------
prints("�m" STR_LOGINDAYS "�n%d " STR_LOGINDAYS_QTY, muser.numlogindays);
-
- if (is_self && muser.old_numlogins)
- prints(" (�­�: %d) ", muser.old_numlogins);
- else
- {
#ifdef SHOW_LOGINOK
if (!(muser.userlevel & PERM_LOGINOK))
outs(" (�|���q�L�{��)");
#endif
- }
move(vgety(), 40);
prints("�m���Ĥ峹�n%d �g", muser.numposts);
diff --git a/mbbsd/user.c b/mbbsd/user.c
index e1d6dc26..8d93d95e 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -173,8 +173,11 @@ user_display(const userec_t * u, int adminmode)
prints("\t\t�{�Ҹ��: %s\n", u->justify);
}
- prints("\t\t�W���峹: " STR_LOGINDAYS " %d " STR_LOGINDAYS_QTY "/ �峹 %d �g\n",
- u->numlogindays, u->numposts);
+ prints("\t\t�ϥΰO��: " STR_LOGINDAYS " %d " STR_LOGINDAYS_QTY
+ ,u->numlogindays);
+ if (u->old_numlogins)
+ prints(" (�ഫ�s��e: %d)", u->old_numlogins);
+ prints(" / �峹 %d �g\n", u->numposts);
sethomedir(genbuf, u->userid);
prints("\t\t�p�H�H�c: %d �� (�ʶR�H�c: %d ��)\n",