summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-12-14 10:19:04 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-12-14 10:19:04 +0800
commit66e3b4a2a28930fe182ab333d5375421645213f5 (patch)
tree8698f5dee6f727bdc3f003eae0beb06b736de51d
parentb6afe5a71845702576055b430ad29ee4dd8f4e1e (diff)
downloadpttbbs-66e3b4a2a28930fe182ab333d5375421645213f5.tar
pttbbs-66e3b4a2a28930fe182ab333d5375421645213f5.tar.gz
pttbbs-66e3b4a2a28930fe182ab333d5375421645213f5.tar.bz2
pttbbs-66e3b4a2a28930fe182ab333d5375421645213f5.tar.lz
pttbbs-66e3b4a2a28930fe182ab333d5375421645213f5.tar.xz
pttbbs-66e3b4a2a28930fe182ab333d5375421645213f5.tar.zst
pttbbs-66e3b4a2a28930fe182ab333d5375421645213f5.zip
Record last time to set angel
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5733 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/include/pttstruct.h2
-rw-r--r--pttbbs/mbbsd/passwd.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/pttbbs/include/pttstruct.h b/pttbbs/include/pttstruct.h
index e674b0fe..b1bc8cc6 100644
--- a/pttbbs/include/pttstruct.h
+++ b/pttbbs/include/pttstruct.h
@@ -92,7 +92,7 @@ typedef struct userec_t {
uint32_t _unused6; /* 從前放轉換前的 numlogins, 使用前請先清0 */
char chkpad1[48];
time4_t lastseen; /* 最近上站時間(隱身不計) */
- time4_t timegetangel; /* 上次得到天使時間 */
+ time4_t timesetangel; /* 上次得到天使時間 */
time4_t _unused7; /* in case 有人忘了把 time4_t 調好... */
// 以上應為 sizeof(chicken_t) 同等大小
diff --git a/pttbbs/mbbsd/passwd.c b/pttbbs/mbbsd/passwd.c
index fcbdf74d..e3dd2d22 100644
--- a/pttbbs/mbbsd/passwd.c
+++ b/pttbbs/mbbsd/passwd.c
@@ -195,6 +195,7 @@ int pwcuSetMyAngel (const char *angel_uid)
PWCU_START();
strlcpy( u.myangel, angel_uid, sizeof( u.myangel));
strlcpy(cuser.myangel, angel_uid, sizeof(cuser.myangel));
+ cuser.timesetangel = (time4_t)time(NULL);
PWCU_END();
}