summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/birth.c6
-rw-r--r--util/reaper.c2
-rw-r--r--util/xchatd.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/util/birth.c b/util/birth.c
index 436c37a6..bac1bad3 100644
--- a/util/birth.c
+++ b/util/birth.c
@@ -12,7 +12,7 @@ int bad_user_id(const char *userid) {
int j;
if (strlen(user.userid) < 2 || !isalpha(user.userid[0]))
return 1;
- if (user.numlogins == 0 || user.numlogins > 15000)
+ if (user.numlogindays == 0 || user.numlogindays > 15000)
return 1;
if (user.numposts > 15000)
return 1;
@@ -66,13 +66,13 @@ int main(argc, argv)
Link(path, genbuf);
sprintf(genbuf, BBSHOME "/home/%c/%s/.DIR", user.userid[0], user.userid);
append_record(genbuf, &mymail, sizeof(mymail));
- if ((user.numlogins + user.numposts) < 20)
+ if ((user.numlogindays + user.numposts) < 20)
continue;
fprintf(fp1,
" [%2d/%-2d] %-14s %-24s login:%-5d post:%-5d\n",
ptime->tm_mon + 1, ptime->tm_mday, user.userid,
- user.nickname, user.numlogins, user.numposts);
+ user.nickname, user.numlogindays, user.numposts);
}
}
fclose(fp1);
diff --git a/util/reaper.c b/util/reaper.c
index d89f6e56..70bd3814 100644
--- a/util/reaper.c
+++ b/util/reaper.c
@@ -136,7 +136,7 @@ int check_last_login(void *data, int n, userec_t *u) {
{
// invalid record
printf("使用者 %-*s (登入%3d 次, %s%s, %s [%04X])\n 最後登入日期異常 [%04X]: %s",
- IDLEN, u->userid, u->numlogins,
+ IDLEN, u->userid, u->numlogindays,
(u->userlevel & PERM_LOGINOK) ? "已過認證" : "未過認證",
(u->userlevel & PERM_SYSOP) ? "[SYSOP]" : "",
buf,
diff --git a/util/xchatd.c b/util/xchatd.c
index e0c82201..912d0d7a 100644
--- a/util/xchatd.c
+++ b/util/xchatd.c
@@ -151,7 +151,7 @@ static char msg_not_here[] = "◆ [%s] 不在這間聊天室";
#define FUZZY_USER ((ChatUser *) -1)
-
+#undef cuser
typedef struct userec_t ACCT;
/* ----------------------------------------------------- */